diff options
author | 2023-10-23 02:06:11 +0900 | |
---|---|---|
committer | 2023-10-28 21:31:22 +0900 | |
commit | e578e4e3110635b20786e442baa3aeff9bb65f95 (patch) | |
tree | 0ef0b7a29ca9b1175fd6b6a0be0956ffb69066a5 /scripts/mod/modpost.c | |
parent | modpost: disallow the combination of EXPORT_SYMBOL and __meminit* (diff) | |
download | linux-e578e4e3110635b20786e442baa3aeff9bb65f95.tar.gz linux-e578e4e3110635b20786e442baa3aeff9bb65f95.tar.bz2 linux-e578e4e3110635b20786e442baa3aeff9bb65f95.zip |
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 <masahiroy@kernel.org>
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r-- | scripts/mod/modpost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index f76ae0909ccd..bc555ac5b47c 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -863,7 +863,7 @@ static const struct sectioncheck sectioncheck[] = { }, { .fromsec = { DATA_SECTIONS, NULL }, - .bad_tosec = { ALL_XXXINIT_SECTIONS, INIT_SECTIONS, NULL }, + .bad_tosec = { ALL_INIT_SECTIONS, NULL }, .mismatch = DATA_TO_ANY_INIT, }, { |