mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
![Thomas Gleixner](/assets/img/avatar_default.png)
CONFIG_KMAP_LOCAL can be enabled by x86/32bit even if CONFIG_HIGHMEM is not enabled for temporary MMIO space mappings. Provide it as a seperate config option which depends on CONFIG_KMAP_LOCAL and let CONFIG_DEBUG_HIGHMEM select it. This won't increase the debug coverage of this significantly but it paves the way to do so. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20201118204006.869487226@linutronix.de
12 lines
263 B
C
12 lines
263 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_GENERIC_KMAP_SIZE_H
|
|
#define _ASM_GENERIC_KMAP_SIZE_H
|
|
|
|
/* For debug this provides guard pages between the maps */
|
|
#ifdef CONFIG_DEBUG_KMAP_LOCAL
|
|
# define KM_MAX_IDX 33
|
|
#else
|
|
# define KM_MAX_IDX 16
|
|
#endif
|
|
|
|
#endif
|