mm/highmem: Provide and use CONFIG_DEBUG_KMAP_LOCAL
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
This commit is contained in:
@@ -849,9 +849,17 @@ config DEBUG_PER_CPU_MAPS
|
||||
|
||||
Say N if unsure.
|
||||
|
||||
config DEBUG_KMAP_LOCAL
|
||||
bool "Debug kmap_local temporary mappings"
|
||||
depends on DEBUG_KERNEL && KMAP_LOCAL
|
||||
help
|
||||
This option enables additional error checking for the kmap_local
|
||||
infrastructure. Disable for production use.
|
||||
|
||||
config DEBUG_HIGHMEM
|
||||
bool "Highmem debugging"
|
||||
depends on DEBUG_KERNEL && HIGHMEM
|
||||
select DEBUG_KMAP_LOCAL
|
||||
help
|
||||
This option enables additional error checking for high memory
|
||||
systems. Disable for production systems.
|
||||
|
||||
Reference in New Issue
Block a user