projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9bb3e5
)
modpost: merge fromsec=DATA_SECTIONS entries in sectioncheck table
author
Masahiro Yamada
<masahiroy@kernel.org>
Sun, 21 May 2023 16:04:21 +0000
(
01:04
+0900)
committer
Masahiro Yamada
<masahiroy@kernel.org>
Sun, 28 May 2023 11:36:52 +0000
(20:36 +0900)
You can merge these entries.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/mod/modpost.c
patch
|
blob
|
history
diff --git
a/scripts/mod/modpost.c
b/scripts/mod/modpost.c
index 1018cd9ced715a29fcae0cade16ebb5ca61f4dde..21417a4a7655dce90a5e85054f433cc2076bfc1b 100644
(file)
--- 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,
},
{