From: Masahiro Yamada Date: Sun, 22 Oct 2023 17:06:11 +0000 (+0900) Subject: modpost: use ALL_INIT_SECTIONS for the section check from DATA_SECTIONS X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17f4332ae695dfdeb0c67b870bce113391f69c85;p=linux 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 Stable-dep-of: bb43a59944f4 ("Rename .data.unlikely to .data..unlikely") Signed-off-by: Sasha Levin --- 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, }, {