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.le...@csgroup.eu>
---
 arch/powerpc/kernel/vmlinux.lds.S     | 9 ---------
 arch/powerpc/kvm/book3s_32_mmu_host.c | 2 --
 2 files changed, 11 deletions(-)

diff --git a/arch/powerpc/kernel/vmlinux.lds.S 
b/arch/powerpc/kernel/vmlinux.lds.S
index b4c9decc7a75..de6ee7d35cff 100644
--- a/arch/powerpc/kernel/vmlinux.lds.S
+++ b/arch/powerpc/kernel/vmlinux.lds.S
@@ -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
diff --git a/arch/powerpc/kvm/book3s_32_mmu_host.c 
b/arch/powerpc/kvm/book3s_32_mmu_host.c
index 5b7212edbb13..c7e4b62642ea 100644
--- a/arch/powerpc/kvm/book3s_32_mmu_host.c
+++ b/arch/powerpc/kvm/book3s_32_mmu_host.c
@@ -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)
 {
-- 
2.47.0


Reply via email to