Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");