powerpc/8xx: mark init functions with __init

setup_initial_memory_limit() is only called during init.
mmu_patch_cmp_limit() is only called from 8xx_mmu.c

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Christophe Leroy 2017-07-12 12:08:55 +02:00 committed by Michael Ellerman
parent 87be3e2d31
commit 346bcc4d33
1 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ void __init MMU_init_hw(void)
#endif #endif
} }
static void mmu_mapin_immr(void) static void __init mmu_mapin_immr(void)
{ {
unsigned long p = PHYS_IMMR_BASE; unsigned long p = PHYS_IMMR_BASE;
unsigned long v = VIRT_IMMR_BASE; unsigned long v = VIRT_IMMR_BASE;
@ -107,7 +107,7 @@ extern unsigned int DTLBMiss_cmp, FixupDAR_cmp;
extern unsigned int ITLBMiss_cmp; extern unsigned int ITLBMiss_cmp;
#endif #endif
void mmu_patch_cmp_limit(unsigned int *addr, unsigned long mapped) static void __init mmu_patch_cmp_limit(unsigned int *addr, unsigned long mapped)
{ {
unsigned int instr = *addr; unsigned int instr = *addr;
@ -151,7 +151,7 @@ unsigned long __init mmu_mapin_ram(unsigned long top)
return mapped; return mapped;
} }
void setup_initial_memory_limit(phys_addr_t first_memblock_base, void __init setup_initial_memory_limit(phys_addr_t first_memblock_base,
phys_addr_t first_memblock_size) phys_addr_t first_memblock_size)
{ {
/* We don't currently support the first MEMBLOCK not mapping 0 /* We don't currently support the first MEMBLOCK not mapping 0