Skip to content

Commit 8fb078a

Browse files
author
Fox Snowpatch
committed
1 parent 816d439 commit 8fb078a

File tree

7 files changed

+318
-107
lines changed

7 files changed

+318
-107
lines changed

arch/powerpc/include/asm/kfence.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#define ARCH_FUNC_PREFIX "."
1616
#endif
1717

18-
#ifdef CONFIG_KFENCE
18+
extern bool kfence_early_init;
1919
extern bool kfence_disabled;
2020

2121
static inline void disable_kfence(void)
@@ -27,7 +27,11 @@ static inline bool arch_kfence_init_pool(void)
2727
{
2828
return !kfence_disabled;
2929
}
30-
#endif
30+
31+
static inline bool kfence_early_init_enabled(void)
32+
{
33+
return IS_ENABLED(CONFIG_KFENCE) && kfence_early_init;
34+
}
3135

3236
#ifdef CONFIG_PPC64
3337
static inline bool kfence_protect_page(unsigned long addr, bool protect)

0 commit comments

Comments
 (0)