Commit fa95eb1f17a5fe7b3593cff4bf27dbe9ae6cac89

Authored by Sam Ravnborg
1 parent 125e564582

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

scripts/mod/modpost.c
... ... @@ -870,7 +870,7 @@
870 870 /* Do not export init/exit functions or data */
871 871 {
872 872 .fromsec = { "__ksymtab*", NULL },
873   - .tosec = { ALL_INIT_SECTIONS, ALL_EXIT_SECTIONS, NULL },
  873 + .tosec = { INIT_SECTIONS, EXIT_SECTIONS, NULL },
874 874 .mismatch = EXPORT_TO_INIT_EXIT
875 875 }
876 876 };