Skip to content

Commit f7e2a15

Browse files
Alexey Spirkovmpe
authored andcommitted
powerpc/44x: Mark mmu_init_secondary() as __init
mmu_init_secondary() calls ppc44x_pin_tlb() which is marked __init, leading to a warning: The function mmu_init_secondary() references the function __init ppc44x_pin_tlb(). There's no CPU hotplug support on 44x so mmu_init_secondary() will only be called at boot. Therefore we should mark it as __init. Signed-off-by: Alexey Spirkov <alexeis@astrosoft.ru> [mpe: Flesh out change log details] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent a984506 commit f7e2a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/mm/44x_mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void setup_initial_memory_limit(phys_addr_t first_memblock_base,
229229
}
230230

231231
#ifdef CONFIG_SMP
232-
void mmu_init_secondary(int cpu)
232+
void __init mmu_init_secondary(int cpu)
233233
{
234234
unsigned long addr;
235235
unsigned long memstart = memstart_addr & ~(PPC_PIN_SIZE - 1);

0 commit comments

Comments
 (0)