History

modpost: merge bad_tosec=ALL_EXIT_SECTIONS entries in sectioncheck table

There is no distinction between TEXT_TO_ANY_EXIT and DATA_TO_ANY_EXIT. Just merge them.

Masahiro Yamada committed 3 years ago

Commit abc23971 parent d4323e81 file · +4 −11Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/mod/modpost.c+4−11
@@ -859,8 +859,7 @@ static const char *const optim_symbols[] = { "*.constprop.*", NULL }; · 858 unmodified lines
859859 enum mismatch {
860860 TEXT_TO_ANY_INIT,
861861 DATA_TO_ANY_INIT,
862− TEXT_TO_ANY_EXIT,
863− DATA_TO_ANY_EXIT,
862+ TEXTDATA_TO_ANY_EXIT,
864863 XXXINIT_TO_SOME_INIT,
865864 XXXEXIT_TO_SOME_EXIT,
866865 ANY_INIT_TO_ANY_EXIT,
@@ -904,14 +903,9 @@ static const struct sectioncheck sectioncheck[] = { · 37 unmodified lines
904903 .mismatch = DATA_TO_ANY_INIT,
905904 },
906905 {
907− .fromsec = { TEXT_SECTIONS, NULL },
908− .bad_tosec = { ALL_EXIT_SECTIONS, NULL },
909− .mismatch = TEXT_TO_ANY_EXIT,
910−},
911−{
912− .fromsec = { DATA_SECTIONS, NULL },
906+ .fromsec = { TEXT_SECTIONS, DATA_SECTIONS, NULL },
913907 .bad_tosec = { ALL_EXIT_SECTIONS, NULL },
914− .mismatch = DATA_TO_ANY_EXIT,
908+ .mismatch = TEXTDATA_TO_ANY_EXIT,
915909 },
916910 /* Do not reference init code/data from meminit code/data */
917911 {
@@ -1203,8 +1197,7 @@ static void default_mismatch_handler(const char *modname, struct elf_info *elf, · 285 unmodified lines
12031197 switch (mismatch->mismatch) {
12041198 case TEXT_TO_ANY_INIT:
12051199 case DATA_TO_ANY_INIT:
1206− case TEXT_TO_ANY_EXIT:
1207− case DATA_TO_ANY_EXIT:
1200+ case TEXTDATA_TO_ANY_EXIT:
12081201 case XXXINIT_TO_SOME_INIT:
12091202 case XXXEXIT_TO_SOME_EXIT:
12101203 case ANY_INIT_TO_ANY_EXIT:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t