Skip to content

Commit

Permalink
kbuild: when warning symbols exported twice now tell user this is the…
Browse files Browse the repository at this point in the history
… 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.

Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Sam Ravnborg committed Mar 5, 2006
1 parent f6ecebd commit 7b75b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static struct symbol *sym_add_exported(const char *name, struct module *mod)
s = new_symbol(name, mod);
} else {
if (!s->preloaded) {
warn("%s: duplicate symbol '%s' previous definition "
warn("%s: '%s' exported twice. Previous export "
"was in %s%s\n", mod->name, name,
s->module->name,
is_vmlinux(s->module->name) ?"":".ko");
Expand Down

0 comments on commit 7b75b13

Please sign in to comment.