projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa220d8
)
kbuild: fix so modpost can now check any .o file
author
Sam Ravnborg
<sam@ravnborg.org>
Thu, 17 Jan 2008 20:17:42 +0000
(21:17 +0100)
committer
Sam Ravnborg
<sam@ravnborg.org>
Mon, 28 Jan 2008 22:14:40 +0000
(23:14 +0100)
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>
scripts/mod/modpost.c
patch
|
blob
|
blame
|
history
diff --git
a/scripts/mod/modpost.c
b/scripts/mod/modpost.c
index 696d2a59e4b8f06e89206099c0849042d9aef87c..46660a4f9e224b44c5934ad132eadfa0101b4771 100644
(file)
--- a/
scripts/mod/modpost.c
+++ b/
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);
}