summaryrefslogtreecommitdiffstats
path: root/include/linux/kernel-page-flags.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kernel-page-flags.h')
-rw-r--r--include/linux/kernel-page-flags.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kernel-page-flags.h b/include/linux/kernel-page-flags.h
index 26a65711676..a1bdf696635 100644
--- a/include/linux/kernel-page-flags.h
+++ b/include/linux/kernel-page-flags.h
@@ -32,6 +32,8 @@
#define KPF_KSM 21
#define KPF_THP 22
+#ifdef __KERNEL__
+
/* kernel hacking assistances
* WARNING: subject to change, never rely on them!
*/
@@ -44,4 +46,6 @@
#define KPF_ARCH 38
#define KPF_UNCACHED 39
+#endif /* __KERNEL__ */
+
#endif /* LINUX_KERNEL_PAGE_FLAGS_H */