mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-04 20:19:47 +08:00 
			
		
		
		
	 6e799cb69a
			
		
	
	
		6e799cb69a
		
	
	
	
	
		
			
			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
		
			
				
	
	
		
			13 lines
		
	
	
		
			263 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			13 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
 |