Skip to content

Commit e578e4e

Browse files
committed
modpost: use ALL_INIT_SECTIONS for the section check from DATA_SECTIONS
ALL_INIT_SECTIONS is defined as follows: #define ALL_INIT_SECTIONS INIT_SECTIONS, ALL_XXXINIT_SECTIONS Signed-off-by: Masahiro Yamada <[email protected]>
1 parent a3df152 commit e578e4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/mod/modpost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ static const struct sectioncheck sectioncheck[] = {
863863
},
864864
{
865865
.fromsec = { DATA_SECTIONS, NULL },
866-
.bad_tosec = { ALL_XXXINIT_SECTIONS, INIT_SECTIONS, NULL },
866+
.bad_tosec = { ALL_INIT_SECTIONS, NULL },
867867
.mismatch = DATA_TO_ANY_INIT,
868868
},
869869
{

0 commit comments

Comments
 (0)