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

powerpc: Remove in_kernel_text()

Last user of in_kernel_text() stopped using in with
commit 549e8152de80 ("powerpc: Make the 64-bit kernel as a
position-independent executable").

Generic function is_kernel_text() does the same.

So remote it.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/2a3a5b6f8cc0ef4e854d7b764f66aa8d2ee270d2.1624813698.git.christophe.leroy@csgroup.eu

authored by

Christophe Leroy and committed by
Michael Ellerman
09ca4975 cf9c615c

-8
-8
arch/powerpc/include/asm/sections.h
··· 38 38 extern char end_virt_trampolines[]; 39 39 #endif 40 40 41 - static inline int in_kernel_text(unsigned long addr) 42 - { 43 - if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end) 44 - return 1; 45 - 46 - return 0; 47 - } 48 - 49 41 static inline unsigned long kernel_toc_addr(void) 50 42 { 51 43 /* Defined by the linker, see vmlinux.lds.S */