Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

modpost: disallow the combination of EXPORT_SYMBOL and __meminit*

Theoretically, we could export conditionally-discarded code sections,
such as .meminit*, if all the users can become modular under a certain
condition. However, that would be difficult to control and such a tricky
case has never occurred.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+1 -1
+1 -1
scripts/mod/modpost.c
··· 1164 1164 ELF_ST_TYPE(sym->st_info) == STT_LOPROC) 1165 1165 s->is_func = true; 1166 1166 1167 - if (match(secname, PATTERNS(INIT_SECTIONS))) 1167 + if (match(secname, PATTERNS(ALL_INIT_SECTIONS))) 1168 1168 warn("%s: %s: EXPORT_SYMBOL used for init symbol. Remove __init or EXPORT_SYMBOL.\n", 1169 1169 mod->name, name); 1170 1170 else if (match(secname, PATTERNS(ALL_EXIT_SECTIONS)))