aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/kfence.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/kfence.h')
-rw-r--r--arch/x86/include/asm/kfence.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kfence.h b/arch/x86/include/asm/kfence.h
index 05b48b33baf0..ff5c7134a37a 100644
--- a/arch/x86/include/asm/kfence.h
+++ b/arch/x86/include/asm/kfence.h
@@ -8,6 +8,8 @@
#ifndef _ASM_X86_KFENCE_H
#define _ASM_X86_KFENCE_H
+#ifndef MODULE
+
#include <linux/bug.h>
#include <linux/kfence.h>
@@ -66,4 +68,6 @@ static inline bool kfence_protect_page(unsigned long addr, bool protect)
return true;
}
+#endif /* !MODULE */
+
#endif /* _ASM_X86_KFENCE_H */