]> err.no Git - linux-2.6/commitdiff
kbuild: ignore smp_locks section warnings from init/exit code
authorRandy Dunlap <rdunlap@xenotime.net>
Wed, 7 Jun 2006 23:23:26 +0000 (16:23 -0700)
committerSam Ravnborg <sam@mars.ravnborg.org>
Thu, 8 Jun 2006 18:20:23 +0000 (20:20 +0200)
Add ".smp_locks" section to whitelist as being safe from
init and exit sections.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/mod/modpost.c

index d0f86ed43f7a17156953d889df8cfa00f6013b04..94047bc99961eb62253cc197311788d906312cd9 100644 (file)
@@ -821,6 +821,7 @@ static int init_section_ref_ok(const char *name)
                ".pci_fixup_final",
                ".pdr",
                "__param",
+               ".smp_locks",
                NULL
        };
        /* Start of section names */
@@ -892,6 +893,7 @@ static int exit_section_ref_ok(const char *name)
                ".exitcall.exit",
                ".eh_frame",
                ".stab",
+               ".smp_locks",
                NULL
        };
        /* Start of section names */