]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/44x: Mark mmu_init_secondary() as __init
authorAlexey Spirkov <AlexeiS@astrosoft.ru>
Thu, 26 Jul 2018 12:52:50 +0000 (12:52 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 30 Jul 2018 12:48:22 +0000 (22:48 +1000)
commit425b93d0f360ade56f0ef20e7e7088c99d405486
treee93d23c88941728af1c1d7e10d75a1baf7f5b1b5
parent228682e9b0c1b1aa54afb1dc87641444e9d0dada
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>
arch/powerpc/mm/44x_mmu.c