]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kbuild: do not warn about __*init/__*exit symbols being exported
authorSam Ravnborg <sam@ravnborg.org>
Sat, 2 Feb 2008 22:30:22 +0000 (23:30 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 3 Feb 2008 07:58:08 +0000 (08:58 +0100)
We have several legitimate uses where we export symbols
annotated with one of:
__devinit, __cpuinit, __meminit and their exit counterpart.
So let's stop warning about those being exported in favour
of adding all sorts of workaround to silence the warning.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/mod/modpost.c

index c2e918e2cef1628976054d822e81ab48149875b6..5d546466e6b1f8d2e700fa0ef846ebe6a14569cd 100644 (file)
@@ -870,7 +870,7 @@ const struct sectioncheck sectioncheck[] = {
 /* Do not export init/exit functions or data */
 {
        .fromsec = { "__ksymtab*", NULL },
-       .tosec   = { ALL_INIT_SECTIONS, ALL_EXIT_SECTIONS, NULL },
+       .tosec   = { INIT_SECTIONS, EXIT_SECTIONS, NULL },
        .mismatch = EXPORT_TO_INIT_EXIT
 }
 };