From nobody Fri Dec 19 19:17:35 2025 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 229991A0BF8 for ; Wed, 8 Jan 2025 10:50:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.17.235.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736333409; cv=none; b=JWwNlh0OpNj2VeVRYRAhiDMexlSABisB6B2NkxyDEYCAWhQP81cs61ay+NAptFBW2DtWJdyx7kkf1xG5N74KNi2li9x0Jd9WpkcRgBNzEIU+KjJthS/N9WyEePRPQWVifPOAVbQxloGkU+SuzDfWOpPq/j5REgBRJIL0zUazHik= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736333409; c=relaxed/simple; bh=Ec8kHO58KIDe8CkEYOZ3DpmTBBq0s9B0cs0op2w11bg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IgQlSR/yWb7THXnYvh/o5hVfMX3f1P7wsUYlCDWLLudgZxPGQ9Sb/p/IFrbB8jND9hBm3OmiTjGGeF133VGPI9q8K24YK106lm5vtGcfBLQfn2gpn9PfGl+xU93rLPYboyaJt3s3tsiLTnfQR+QypYtMrozMGhbzUuYTRCRPd9Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=csgroup.eu; spf=pass smtp.mailfrom=csgroup.eu; arc=none smtp.client-ip=93.17.235.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=csgroup.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=csgroup.eu Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4YSkm86Lg3z9sRy; Wed, 8 Jan 2025 11:33:44 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e--y99sG2Jfn; Wed, 8 Jan 2025 11:33:44 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4YSkm85cBwz9sRs; Wed, 8 Jan 2025 11:33:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id AD3848B768; Wed, 8 Jan 2025 11:33:44 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 6bLrWfcbqmCF; Wed, 8 Jan 2025 11:33:44 +0100 (CET) Received: from PO20335.idsi0.si.c-s.fr (unknown [192.168.235.99]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 529B38B767; Wed, 8 Jan 2025 11:33:44 +0100 (CET) From: Christophe Leroy To: Michael Ellerman , Nicholas Piggin , Naveen N Rao , Madhavan Srinivasan Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH] powerpc/vmlinux: Remove etext, edata and end Date: Wed, 8 Jan 2025 11:33:44 +0100 Message-ID: X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1736332424; l=1833; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=Ec8kHO58KIDe8CkEYOZ3DpmTBBq0s9B0cs0op2w11bg=; b=XXqtHVK8Df9/x/6YWS10nAklPWrHyTqv87Xqp21Is6AH796OIg066dKRgaQYv10HPHhZbxQGT xI5idU2B/D8DxRm6V5gUZmT6fdD3JkDvhGVDrV9Wz6qEHqgcy2/W3iN X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- 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/vmlinu= x.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 =20 . =3D ALIGN(PAGE_SIZE); _etext =3D .; - PROVIDE32 (etext =3D .); =20 /* Read-only data */ RO_DATA(PAGE_SIZE) @@ -394,7 +387,6 @@ SECTIONS =20 . =3D ALIGN(PAGE_SIZE); _edata =3D .; - PROVIDE32 (edata =3D .); =20 /* * And finally the bss @@ -404,7 +396,6 @@ SECTIONS =20 . =3D ALIGN(PAGE_SIZE); _end =3D . ; - PROVIDE32 (end =3D .); =20 DWARF_DEBUG ELF_DETAILS diff --git a/arch/powerpc/kvm/book3s_32_mmu_host.c b/arch/powerpc/kvm/book3= s_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; } =20 -extern char etext[]; - int kvmppc_mmu_map_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *orig_pte, bool iswrite) { --=20 2.47.0