hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/page-flags-layout.h
....@@ -77,7 +77,7 @@
7777 #define LAST_CPUPID_SHIFT 0
7878 #endif
7979
80
-#ifdef CONFIG_KASAN_SW_TAGS
80
+#if defined(CONFIG_KASAN_SW_TAGS) || defined(CONFIG_KASAN_HW_TAGS)
8181 #define KASAN_TAG_WIDTH 8
8282 #else
8383 #define KASAN_TAG_WIDTH 0
....@@ -98,9 +98,11 @@
9898 /*
9999 * We are going to use the flags for the page to node mapping if its in
100100 * there. This includes the case where there is no node, so it is implicit.
101
+ * Note that this #define MUST have a value so that it can be tested with
102
+ * the IS_ENABLED() macro.
101103 */
102104 #if !(NODES_WIDTH > 0 || NODES_SHIFT == 0)
103
-#define NODE_NOT_IN_PAGE_FLAGS
105
+#define NODE_NOT_IN_PAGE_FLAGS 1
104106 #endif
105107
106108 #if defined(CONFIG_NUMA_BALANCING) && LAST_CPUPID_WIDTH == 0