powerpc/32s: Fix setup_{kuap/kuep}() on SMP
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 28 Jun 2021 06:56:11 +0000 (06:56 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 30 Jun 2021 12:20:39 +0000 (22:20 +1000)
commitc89e632658e793fbbdcbfbe80a6c13bbf7203e9b
treeb6c67004af4fe0b318fce9d7b395227c0b29c9f5
parentb064037ea4104120418ccbf39951a6d529a9d6d5
powerpc/32s: Fix setup_{kuap/kuep}() on SMP

On SMP, setup_kup() is also called from start_secondary().

start_secondary() is not an __init function.

Remove the __init marker from setup_kuep() and setup_kuap().

Fixes: 86f46f343272 ("powerpc/32s: Initialise KUAP and KUEP in C")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/42f4bd12b476942e4d5dc81c0e839d8871b20b1c.1624863319.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/book3s32/kuap.c
arch/powerpc/mm/book3s32/kuep.c