Skip to content

Commit 34fcf23

Browse files
committed
modpost: squash ALL_{INIT,EXIT}_TEXT_SECTIONS to ALL_TEXT_SECTIONS
ALL_INIT_TEXT_SECTIONS and ALL_EXIT_TEXT_SECTIONS are only used in the macro definition of ALL_TEXT_SECTIONS. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent b3d4f44 commit 34fcf23

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scripts/mod/modpost.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -795,11 +795,6 @@ static void check_section(const char *modname, struct elf_info *elf,
795795
".init.setup", ".init.rodata", ".meminit.rodata", \
796796
".init.data", ".meminit.data"
797797

798-
#define ALL_INIT_TEXT_SECTIONS \
799-
".init.text", ".meminit.text"
800-
#define ALL_EXIT_TEXT_SECTIONS \
801-
".exit.text"
802-
803798
#define ALL_PCI_INIT_SECTIONS \
804799
".pci_fixup_early", ".pci_fixup_header", ".pci_fixup_final", \
805800
".pci_fixup_enable", ".pci_fixup_resume", \
@@ -819,7 +814,7 @@ static void check_section(const char *modname, struct elf_info *elf,
819814

820815
#define INIT_SECTIONS ".init.*"
821816

822-
#define ALL_TEXT_SECTIONS ALL_INIT_TEXT_SECTIONS, ALL_EXIT_TEXT_SECTIONS, \
817+
#define ALL_TEXT_SECTIONS ".init.text", ".meminit.text", ".exit.text", \
823818
TEXT_SECTIONS, OTHER_TEXT_SECTIONS
824819

825820
enum mismatch {

0 commit comments

Comments
 (0)