Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa95eb1f authored by Sam Ravnborg's avatar Sam Ravnborg
Browse files

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: default avatarSam Ravnborg <sam@ravnborg.org>
parent 125e5645
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
}
};