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); }