aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2006-03-05 07:48:58 -0500
committerSam Ravnborg <sam@mars.ravnborg.org>2006-03-05 07:48:58 -0500
commit7b75b13cda8bd21e8636ea985f76e1ce5bd1a470 (patch)
treeaa547e0525bdc0cd60560771a9b7c09bf133ba85
parentf6ecebd6592ea70e9450ec70efb24220dd961ebc (diff)
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>
-rw-r--r--scripts/mod/modpost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 3648683a26c5..e2bf4c927dd3 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -191,7 +191,7 @@ static struct symbol *sym_add_exported(const char *name, struct module *mod)
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");