mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
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. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
parent
f6ecebd659
commit
7b75b13cda
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ static struct symbol *sym_add_exported(const char *name, struct module *mod)
|
||||||
s = new_symbol(name, mod);
|
s = new_symbol(name, mod);
|
||||||
} else {
|
} else {
|
||||||
if (!s->preloaded) {
|
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,
|
"was in %s%s\n", mod->name, name,
|
||||||
s->module->name,
|
s->module->name,
|
||||||
is_vmlinux(s->module->name) ?"":".ko");
|
is_vmlinux(s->module->name) ?"":".ko");
|
||||||
|
|
Loading…
Add table
Reference in a new issue