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: remove EXIT_SECTIONS macro

ALL_EXIT_SECTIONS and EXIT_SECTIONS are the same. Remove the latter.

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

+3 -5
+3 -5
scripts/mod/modpost.c
··· 808 808 #define ALL_XXXINIT_SECTIONS ".meminit.*" 809 809 810 810 #define ALL_INIT_SECTIONS INIT_SECTIONS, ALL_XXXINIT_SECTIONS 811 - #define ALL_EXIT_SECTIONS EXIT_SECTIONS 811 + #define ALL_EXIT_SECTIONS ".exit.*" 812 812 813 813 #define DATA_SECTIONS ".data", ".data.rel" 814 814 #define TEXT_SECTIONS ".text", ".text.*", ".sched.text", \ ··· 818 818 ".coldtext", ".softirqentry.text" 819 819 820 820 #define INIT_SECTIONS ".init.*" 821 - 822 - #define EXIT_SECTIONS ".exit.*" 823 821 824 822 #define ALL_TEXT_SECTIONS ALL_INIT_TEXT_SECTIONS, ALL_EXIT_TEXT_SECTIONS, \ 825 823 TEXT_SECTIONS, OTHER_TEXT_SECTIONS ··· 1004 1006 */ 1005 1007 if (!extra_warn && 1006 1008 match(fromsec, PATTERNS(DATA_SECTIONS)) && 1007 - match(tosec, PATTERNS(EXIT_SECTIONS)) && 1009 + match(tosec, PATTERNS(ALL_EXIT_SECTIONS)) && 1008 1010 match(fromsym, PATTERNS("*driver"))) 1009 1011 return 0; 1010 1012 ··· 1167 1169 if (match(secname, PATTERNS(INIT_SECTIONS))) 1168 1170 warn("%s: %s: EXPORT_SYMBOL used for init symbol. Remove __init or EXPORT_SYMBOL.\n", 1169 1171 mod->name, name); 1170 - else if (match(secname, PATTERNS(EXIT_SECTIONS))) 1172 + else if (match(secname, PATTERNS(ALL_EXIT_SECTIONS))) 1171 1173 warn("%s: %s: EXPORT_SYMBOL used for exit symbol. Remove __exit or EXPORT_SYMBOL.\n", 1172 1174 mod->name, name); 1173 1175 }