History

kbuild: when warning symbols exported twice now tell user this is the problem

Warning now looks like this: WARNING: vmlinux: 'strcpy' exported twice. Previous export was in vmlinux Which gives much better hint how to fix it.

Sam Ravnborg committed 20 years ago

Commit 7b75b131 parent f6ecebd1 file · +1 −1Browse files

Unified · Split

scripts/mod/modpost.c+1−1
@@ -191,7 +191,7 @@ static struct symbol *sym_add_exported(const char *name, struct module *mod) · 190 unmodified lines
191 s = new_symbol(name, mod);191 s = new_symbol(name, mod);
192 } else {192 } else {
193 if (!s->preloaded) {193 if (!s->preloaded) {
194 warn("%s: duplicate symbol '%s' previous definition "194 warn("%s: '%s' exported twice. Previous export "
195 "was in %s%s\n", mod->name, name,195 "was in %s%s\n", mod->name, name,
196 s->module->name,196 s->module->name,
197 is_vmlinux(s->module->name) ?"":".ko");197 is_vmlinux(s->module->name) ?"":".ko");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t