aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/include/asm/pgtable_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/pgtable_types.h b/arch/x86/include/asm/pgtable_types.h
index e857a2c2600..c47e99e1be9 100644
--- a/arch/x86/include/asm/pgtable_types.h
+++ b/arch/x86/include/asm/pgtable_types.h
@@ -133,7 +133,7 @@
* Do compile-time checks for all the bits that may be set on
* non-present PTEs
*/
-#if _PAGE_BIT_FILE == _PAGE_BIT_SWP_SOFT_DIRTY
+#if defined(_PAGE_BIT_SWP_SOFT_DIRTY) && _PAGE_BIT_FILE == _PAGE_BIT_SWP_SOFT_DIRTY
#error conflicting _PAGE_BIT_FILE
#endif
#if _PAGE_BIT_FILE == _PAGE_BIT_PROTNONE