From 84a995908252881c1664ad0938380669feb237a2 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Thu, 17 Jan 2008 21:17:42 +0100 Subject: [PATCH] --- yaml --- r: 77986 b: refs/heads/master c: d1f25e6658943569f2713dfde1b9d74e2f6c7243 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/mod/modpost.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 964556e54bb2..79747be92e4f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fa220d89ad050cf5d970c0418ded019a80efedfb +refs/heads/master: d1f25e6658943569f2713dfde1b9d74e2f6c7243 diff --git a/trunk/scripts/mod/modpost.c b/trunk/scripts/mod/modpost.c index 696d2a59e4b8..46660a4f9e22 100644 --- a/trunk/scripts/mod/modpost.c +++ b/trunk/scripts/mod/modpost.c @@ -1299,7 +1299,8 @@ static void read_symbols(char *modname) handle_modversions(mod, &info, sym, symname); handle_moddevtable(mod, &info, sym, symname); } - if (is_vmlinux(modname) && vmlinux_section_warnings) { + if (!is_vmlinux(modname) || + (is_vmlinux(modname) && vmlinux_section_warnings)) { check_sec_ref(mod, modname, &info, init_section, init_section_ref_ok); check_sec_ref(mod, modname, &info, exit_section, exit_section_ref_ok); }