]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
powerpc/vmlinux: Remove etext, edata and end
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 8 Jan 2025 10:33:44 +0000 (11:33 +0100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 24 Feb 2025 06:56:21 +0000 (12:26 +0530)
etext is not used anymore since commit 843a1ffaf6f2 ("powerpc/mm: use
core_kernel_text() helper")

edata and end have not been used since the merge of arch/ppc/ and
arch/ppc64/

Remove the three and remove macro PROVIDE32.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/d1686d36cdd6b9d681e7ee4dd677c386d43babb1.1736332415.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/vmlinux.lds.S
arch/powerpc/kvm/book3s_32_mmu_host.c

index b4c9decc7a75ceee1d1062f4b0260e972ba3400a..de6ee7d35cff0db76792d4a2db398a102f6d8c7f 100644 (file)
@@ -1,10 +1,4 @@
 /* SPDX-License-Identifier: GPL-2.0 */
-#ifdef CONFIG_PPC64
-#define PROVIDE32(x)   PROVIDE(__unused__##x)
-#else
-#define PROVIDE32(x)   PROVIDE(x)
-#endif
-
 #define BSS_FIRST_SECTIONS *(.bss.prominit)
 #define EMITS_PT_NOTE
 #define RO_EXCEPTION_TABLE_ALIGN       0
@@ -127,7 +121,6 @@ SECTIONS
 
        . = ALIGN(PAGE_SIZE);
        _etext = .;
-       PROVIDE32 (etext = .);
 
        /* Read-only data */
        RO_DATA(PAGE_SIZE)
@@ -394,7 +387,6 @@ SECTIONS
 
        . = ALIGN(PAGE_SIZE);
        _edata  =  .;
-       PROVIDE32 (edata = .);
 
 /*
  * And finally the bss
@@ -404,7 +396,6 @@ SECTIONS
 
        . = ALIGN(PAGE_SIZE);
        _end = . ;
-       PROVIDE32 (end = .);
 
        DWARF_DEBUG
        ELF_DETAILS
index 5b7212edbb13130101892089fadc02aa2f1ac685..c7e4b62642eac03edeb343e0a7d66e2dde44ff2d 100644 (file)
@@ -125,8 +125,6 @@ static u32 *kvmppc_mmu_get_pteg(struct kvm_vcpu *vcpu, u32 vsid, u32 eaddr,
        return (u32*)pteg;
 }
 
-extern char etext[];
-
 int kvmppc_mmu_map_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *orig_pte,
                        bool iswrite)
 {