Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fa95eb1f17a5fe7b3593cff4bf27dbe9ae6cac89
Commit:     fa95eb1f17a5fe7b3593cff4bf27dbe9ae6cac89
Parent:     125e564582cbce6219397fc64556438420efae4c
Author:     Sam Ravnborg <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 2 23:30:22 2008 +0100
Committer:  Sam Ravnborg <[EMAIL PROTECTED]>
CommitDate: Sun Feb 3 08:58:08 2008 +0100

    kbuild: do not warn about __*init/__*exit symbols being exported
    
    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 <[EMAIL PROTECTED]>
---
 scripts/mod/modpost.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index c2e918e..5d54646 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -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
 }
 };
-
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  http://vger.kernel.org/majordomo-info.html

Reply via email to