Skip to content

Commit fa95eb1

Browse files
committed
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>
1 parent 125e564 commit fa95eb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/mod/modpost.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ const struct sectioncheck sectioncheck[] = {
870870
/* Do not export init/exit functions or data */
871871
{
872872
.fromsec = { "__ksymtab*", NULL },
873-
.tosec = { ALL_INIT_SECTIONS, ALL_EXIT_SECTIONS, NULL },
873+
.tosec = { INIT_SECTIONS, EXIT_SECTIONS, NULL },
874874
.mismatch = EXPORT_TO_INIT_EXIT
875875
}
876876
};

0 commit comments

Comments
 (0)