Commit 7b75b13c authored by Sam Ravnborg's avatar Sam Ravnborg

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: default avatarSam Ravnborg <sam@ravnborg.org>
parent f6ecebd6
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment