diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-01-17 15:17:42 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-01-28 17:14:40 -0500 |
commit | d1f25e6658943569f2713dfde1b9d74e2f6c7243 (patch) | |
tree | b1c84264df8ed3941e6473f7126b13325c1aeacb /scripts/mod | |
parent | fa220d89ad050cf5d970c0418ded019a80efedfb (diff) |
kbuild: fix so modpost can now check any .o file
It is very convinient to say:
scripts/mod/modpost mm/built-in.o
to check if any section mismatch errors occured
in mm/ (as an example).
Fix it so this is possible again.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/modpost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 696d2a59e4b8..46660a4f9e22 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -1299,7 +1299,8 @@ static void read_symbols(char *modname) | |||
1299 | handle_modversions(mod, &info, sym, symname); | 1299 | handle_modversions(mod, &info, sym, symname); |
1300 | handle_moddevtable(mod, &info, sym, symname); | 1300 | handle_moddevtable(mod, &info, sym, symname); |
1301 | } | 1301 | } |
1302 | if (is_vmlinux(modname) && vmlinux_section_warnings) { | 1302 | if (!is_vmlinux(modname) || |
1303 | (is_vmlinux(modname) && vmlinux_section_warnings)) { | ||
1303 | check_sec_ref(mod, modname, &info, init_section, init_section_ref_ok); | 1304 | check_sec_ref(mod, modname, &info, init_section, init_section_ref_ok); |
1304 | check_sec_ref(mod, modname, &info, exit_section, exit_section_ref_ok); | 1305 | check_sec_ref(mod, modname, &info, exit_section, exit_section_ref_ok); |
1305 | } | 1306 | } |