Thomas Gleixner | 4f8b96c | 2020-11-03 10:27:17 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef _ASM_GENERIC_KMAP_SIZE_H | ||||
3 | #define _ASM_GENERIC_KMAP_SIZE_H | ||||
4 | |||||
5 | /* For debug this provides guard pages between the maps */ | ||||
Thomas Gleixner | 6e799cb | 2020-11-18 20:48:39 +0100 | [diff] [blame] | 6 | #ifdef CONFIG_DEBUG_KMAP_LOCAL |
Thomas Gleixner | 4f8b96c | 2020-11-03 10:27:17 +0100 | [diff] [blame] | 7 | # define KM_MAX_IDX 33 |
8 | #else | ||||
9 | # define KM_MAX_IDX 16 | ||||
10 | #endif | ||||
11 | |||||
12 | #endif |