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

Showing the changes to scripts (1 of 1 file). Show all

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
191191 s = new_symbol(name, mod);
192192 } else {
193193 if (!s->preloaded) {
194− warn("%s: duplicate symbol '%s' previous definition "
194+ warn("%s: '%s' exported twice. Previous export "
195195 "was in %s%s\n", mod->name, name,
196196 s->module->name,
197197 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