| .. | .. |
|---|
| 77 | 77 | #define LAST_CPUPID_SHIFT 0 |
|---|
| 78 | 78 | #endif |
|---|
| 79 | 79 | |
|---|
| 80 | | -#ifdef CONFIG_KASAN_SW_TAGS |
|---|
| 80 | +#if defined(CONFIG_KASAN_SW_TAGS) || defined(CONFIG_KASAN_HW_TAGS) |
|---|
| 81 | 81 | #define KASAN_TAG_WIDTH 8 |
|---|
| 82 | 82 | #else |
|---|
| 83 | 83 | #define KASAN_TAG_WIDTH 0 |
|---|
| .. | .. |
|---|
| 98 | 98 | /* |
|---|
| 99 | 99 | * We are going to use the flags for the page to node mapping if its in |
|---|
| 100 | 100 | * 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. |
|---|
| 101 | 103 | */ |
|---|
| 102 | 104 | #if !(NODES_WIDTH > 0 || NODES_SHIFT == 0) |
|---|
| 103 | | -#define NODE_NOT_IN_PAGE_FLAGS |
|---|
| 105 | +#define NODE_NOT_IN_PAGE_FLAGS 1 |
|---|
| 104 | 106 | #endif |
|---|
| 105 | 107 | |
|---|
| 106 | 108 | #if defined(CONFIG_NUMA_BALANCING) && LAST_CPUPID_WIDTH == 0 |
|---|