Skip to contentSkip to conversation

powerpc/book3s/kup: Mark the kuap/keup function non __init

PATCH Applied Aneesh Kumar K.V 3 participants 3 messages Dec 14, 2020 – Dec 15, 2020 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 powerpc/book3s/kup: Mark the kuap/keup function non __init

The kernel call these functions on cpu online and hence they should not be marked __init.

Fixes 3b47b7549ead ("powerpc/book3s64/kuap: Move KUAP related function outside radix")
---
 arch/powerpc/mm/book3s64/pkeys.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/mm/book3s64/pkeys.c +2 -2
index 2b7ded396db4..f1c6f264ed91 100644
@@ -251,7 +251,7 @@ void __init pkey_early_init_devtree(void)
 }
 
 #ifdef CONFIG_PPC_KUEP
-void __init setup_kuep(bool disabled)
+void setup_kuep(bool disabled)
 {
 	if (disabled)
 		return;
@@ -277,7 +277,7 @@ void __init setup_kuep(bool disabled)
 #endif
 
 #ifdef CONFIG_PPC_KUAP
-void __init setup_kuap(bool disabled)
+void setup_kuap(bool disabled)
 {
 	if (disabled)
 		return;
Signature · 1 line
2.28.0