Skip to content

Commit c89e632

Browse files
chleroympe
authored andcommitted
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: 86f46f3 ("powerpc/32s: Initialise KUAP and KUEP in C") Reported-by: kernel test robot <[email protected]> Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/42f4bd12b476942e4d5dc81c0e839d8871b20b1c.1624863319.git.christophe.leroy@csgroup.eu
1 parent b064037 commit c89e632

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/powerpc/mm/book3s32/kuap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void kuap_unlock_all_ool(void)
1818
}
1919
EXPORT_SYMBOL(kuap_unlock_all_ool);
2020

21-
void __init setup_kuap(bool disabled)
21+
void setup_kuap(bool disabled)
2222
{
2323
if (!disabled)
2424
kuap_lock_all_ool();

arch/powerpc/mm/book3s32/kuep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
struct static_key_false disable_kuep_key;
77

8-
void __init setup_kuep(bool disabled)
8+
void setup_kuep(bool disabled)
99
{
1010
if (!disabled)
1111
kuep_lock();

0 commit comments

Comments
 (0)