瀏覽代碼

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>
Sam Ravnborg 19 年之前
父節點
當前提交
7b75b13cda
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/mod/modpost.c

+ 1 - 1
scripts/mod/modpost.c

@@ -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");