]> git.hungrycats.org Git - linux/commitdiff
modpost: squash ALL_{INIT,EXIT}_TEXT_SECTIONS to ALL_TEXT_SECTIONS
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 22 Oct 2023 17:06:13 +0000 (02:06 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2024 09:32:58 +0000 (10:32 +0100)
[ Upstream commit 34fcf231dcf94d7dea29c070228c4b93849f4850 ]

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 <masahiroy@kernel.org>
Stable-dep-of: bb43a59944f4 ("Rename .data.unlikely to .data..unlikely")
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/mod/modpost.c

index 413da4c93b78eba30ae7ced8ee60f544b967f3bf..bd559361ecd27b74edf904eb3a55b40536141afc 100644 (file)
@@ -795,11 +795,6 @@ static void check_section(const char *modname, struct elf_info *elf,
        ".init.setup", ".init.rodata", ".meminit.rodata", \
        ".init.data", ".meminit.data"
 
-#define ALL_INIT_TEXT_SECTIONS \
-       ".init.text", ".meminit.text"
-#define ALL_EXIT_TEXT_SECTIONS \
-       ".exit.text"
-
 #define ALL_PCI_INIT_SECTIONS  \
        ".pci_fixup_early", ".pci_fixup_header", ".pci_fixup_final", \
        ".pci_fixup_enable", ".pci_fixup_resume", \
@@ -820,7 +815,7 @@ static void check_section(const char *modname, struct elf_info *elf,
 
 #define INIT_SECTIONS      ".init.*"
 
-#define ALL_TEXT_SECTIONS  ALL_INIT_TEXT_SECTIONS, ALL_EXIT_TEXT_SECTIONS, \
+#define ALL_TEXT_SECTIONS  ".init.text", ".meminit.text", ".exit.text", \
                TEXT_SECTIONS, OTHER_TEXT_SECTIONS
 
 enum mismatch {