mm/highmem: Provide and use CONFIG_DEBUG_KMAP_LOCAL
authorThomas Gleixner <tglx@linutronix.de>
Wed, 18 Nov 2020 19:48:39 +0000 (20:48 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 24 Nov 2020 13:42:08 +0000 (14:42 +0100)
commit6e799cb69a70eedbb41561b750f7180c12cff280
treeee6b2c78fb94daef46d0da949e4bad4f2efdd070
parent13c8da5db43ad6d9b8637295ff50ddb66a0af05f
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
include/asm-generic/kmap_size.h
lib/Kconfig.debug
mm/highmem.c