Commit:     d1f25e6658943569f2713dfde1b9d74e2f6c7243
Parent:     fa220d89ad050cf5d970c0418ded019a80efedfb
Author:     Sam Ravnborg <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 17 21:17:42 2008 +0100
Committer:  Sam Ravnborg <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 23:14:40 2008 +0100

    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 <[EMAIL PROTECTED]>
 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 696d2a5..46660a4 100644
--- 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, 
                check_sec_ref(mod, modname, &info, exit_section, 
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to