summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-10-23 02:06:11 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-09 10:32:58 +0100
commit17f4332ae695dfdeb0c67b870bce113391f69c85 (patch)
tree642b2a0f53997052f14872774b1593523cd8d9a6 /scripts
parentdb081efa9b8017b683230702a83e4b644a739a4d (diff)
downloadlinux-17f4332ae695dfdeb0c67b870bce113391f69c85.tar.gz
linux-17f4332ae695dfdeb0c67b870bce113391f69c85.tar.bz2
linux-17f4332ae695dfdeb0c67b870bce113391f69c85.zip
modpost: use ALL_INIT_SECTIONS for the section check from DATA_SECTIONS
[ Upstream commit e578e4e3110635b20786e442baa3aeff9bb65f95 ] ALL_INIT_SECTIONS is defined as follows: #define ALL_INIT_SECTIONS INIT_SECTIONS, ALL_XXXINIT_SECTIONS Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Stable-dep-of: bb43a59944f4 ("Rename .data.unlikely to .data..unlikely") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/modpost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index c4c09e28dc90..413da4c93b78 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -864,7 +864,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,
},
{