Message ID | 20230521160426.1881124-17-masahiroy@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Unify <linux/export.h> and <asm/export.h>, remove EXPORT_DATA_SYMBOL(), faster TRIM_UNUSED_KSYMS | expand |
On Sun, May 21, 2023 at 9:05 AM Masahiro Yamada <masahiroy@kernel.org> wrote: > > You can merge these entries. > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Thanks for the patch! Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> > --- > > scripts/mod/modpost.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c > index 516323c3910a..aea9d6cd243d 100644 > --- a/scripts/mod/modpost.c > +++ b/scripts/mod/modpost.c > @@ -884,12 +884,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, > }, > { > -- > 2.39.2 >
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 516323c3910a..aea9d6cd243d 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -884,12 +884,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, }, {
You can merge these entries. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> --- scripts/mod/modpost.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)