diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-02-02 17:30:22 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-02-03 02:58:08 -0500 |
commit | fa95eb1f17a5fe7b3593cff4bf27dbe9ae6cac89 (patch) | |
tree | 51f55a88626983610e13a49c0f2272718036b012 | |
parent | 125e564582cbce6219397fc64556438420efae4c (diff) |
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 <sam@ravnborg.org>
-rw-r--r-- | 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 c2e918e2cef1..5d546466e6b1 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -870,7 +870,7 @@ const struct sectioncheck sectioncheck[] = { | |||
870 | /* Do not export init/exit functions or data */ | 870 | /* Do not export init/exit functions or data */ |
871 | { | 871 | { |
872 | .fromsec = { "__ksymtab*", NULL }, | 872 | .fromsec = { "__ksymtab*", NULL }, |
873 | .tosec = { ALL_INIT_SECTIONS, ALL_EXIT_SECTIONS, NULL }, | 873 | .tosec = { INIT_SECTIONS, EXIT_SECTIONS, NULL }, |
874 | .mismatch = EXPORT_TO_INIT_EXIT | 874 | .mismatch = EXPORT_TO_INIT_EXIT |
875 | } | 875 | } |
876 | }; | 876 | }; |