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

powerpc: Remove stale declarations in mmu_decl.h

rtas_size and rtas_data are not used anymore since at least
commit 7c8c6b9776fb ("powerpc: Merge lmb.c and make MM initialization
use it.")

Remove them.

Since commit 4b74a35fc7e9 ("powerpc/32s: Make Hash var static")
the forward declaration of struct hash_pte is unneeded.

Remove it.

__initial_memory_limit_addr was removed by commit e63075a3c937 ("memblock:
Introduce default allocation limit and use it to replace explicit ones")

Remove the declaration.

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

authored by

Christophe Leroy and committed by
Michael Ellerman
e38cd72c 9e1b45fd

-5
-1
arch/powerpc/include/asm/setup.h
··· 7 7 #ifndef __ASSEMBLY__ 8 8 extern void ppc_printk_progress(char *s, unsigned short hex); 9 9 10 - extern unsigned int rtas_data; 11 10 extern unsigned long long memory_limit; 12 11 extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask); 13 12
-4
arch/powerpc/mm/mmu_decl.h
··· 92 92 extern void setbat(int index, unsigned long virt, phys_addr_t phys, 93 93 unsigned int size, pgprot_t prot); 94 94 95 - extern unsigned int rtas_data, rtas_size; 96 - 97 - struct hash_pte; 98 95 extern u8 early_hash[]; 99 96 100 97 #endif /* CONFIG_PPC32 */ 101 98 102 99 extern unsigned long __max_low_memory; 103 - extern phys_addr_t __initial_memory_limit_addr; 104 100 extern phys_addr_t total_memory; 105 101 extern phys_addr_t total_lowmem; 106 102 extern phys_addr_t memstart_addr;