diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-05-22 01:04:21 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-05-28 20:36:52 +0900 |
commit | d4323e83505247d2aca1e2488f69da9aab8ad03f (patch) | |
tree | c0c2d948099f5b97c85ef17c09614fc146194e18 /scripts | |
parent | a9bb3e5d57293773d7f925dd07e45f6e13e94947 (diff) | |
download | linux-stable-d4323e83505247d2aca1e2488f69da9aab8ad03f.tar.gz linux-stable-d4323e83505247d2aca1e2488f69da9aab8ad03f.tar.bz2 linux-stable-d4323e83505247d2aca1e2488f69da9aab8ad03f.zip |
modpost: merge fromsec=DATA_SECTIONS entries in sectioncheck table
You can merge these entries.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mod/modpost.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 1018cd9ced71..21417a4a7655 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -900,12 +900,7 @@ static const struct sectioncheck sectioncheck[] = { }, { .fromsec = { DATA_SECTIONS, NULL }, - .bad_tosec = { ALL_XXXINIT_SECTIONS, NULL }, - .mismatch = DATA_TO_ANY_INIT, -}, -{ - .fromsec = { DATA_SECTIONS, NULL }, - .bad_tosec = { INIT_SECTIONS, NULL }, + .bad_tosec = { ALL_XXXINIT_SECTIONS, INIT_SECTIONS, NULL }, .mismatch = DATA_TO_ANY_INIT, }, { |