Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/vmlinux: Remove etext, edata and end

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

authored by

Christophe Leroy and committed by
Madhavan Srinivasan
2c1cbbab 779c501c

-11
-9
arch/powerpc/kernel/vmlinux.lds.S
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 - #ifdef CONFIG_PPC64 3 - #define PROVIDE32(x) PROVIDE(__unused__##x) 4 - #else 5 - #define PROVIDE32(x) PROVIDE(x) 6 - #endif 7 - 8 2 #define BSS_FIRST_SECTIONS *(.bss.prominit) 9 3 #define EMITS_PT_NOTE 10 4 #define RO_EXCEPTION_TABLE_ALIGN 0 ··· 121 127 122 128 . = ALIGN(PAGE_SIZE); 123 129 _etext = .; 124 - PROVIDE32 (etext = .); 125 130 126 131 /* Read-only data */ 127 132 RO_DATA(PAGE_SIZE) ··· 387 394 388 395 . = ALIGN(PAGE_SIZE); 389 396 _edata = .; 390 - PROVIDE32 (edata = .); 391 397 392 398 /* 393 399 * And finally the bss ··· 396 404 397 405 . = ALIGN(PAGE_SIZE); 398 406 _end = . ; 399 - PROVIDE32 (end = .); 400 407 401 408 DWARF_DEBUG 402 409 ELF_DETAILS
-2
arch/powerpc/kvm/book3s_32_mmu_host.c
··· 125 125 return (u32*)pteg; 126 126 } 127 127 128 - extern char etext[]; 129 - 130 128 int kvmppc_mmu_map_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *orig_pte, 131 129 bool iswrite) 132 130 {