Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Make STRICT_MM_TYPECHECKS a config option

The STRICT_MM_TYPECHECKS code has bit-rotted over the years. To make it
possible to easily build test it, make it a CONFIG option.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

+10 -4
+8
arch/powerpc/Kconfig.debug
··· 19 19 depends on !PPC_DISABLE_WERROR 20 20 default y 21 21 22 + config STRICT_MM_TYPECHECKS 23 + bool "Do extra type checking on mm types" 24 + default n 25 + help 26 + This option turns on extra type checking for some mm related types. 27 + 28 + If you don't know what this means, say N. 29 + 22 30 config PRINT_STACK_DEPTH 23 31 int "Stack depth to print" if DEBUG_KERNEL 24 32 default 64
+1 -3
arch/powerpc/include/asm/page.h
··· 278 278 279 279 #ifndef __ASSEMBLY__ 280 280 281 - #undef STRICT_MM_TYPECHECKS 282 - 283 - #ifdef STRICT_MM_TYPECHECKS 281 + #ifdef CONFIG_STRICT_MM_TYPECHECKS 284 282 /* These are used to make use of C type-checking. */ 285 283 286 284 /* PTE level */
+1 -1
arch/powerpc/include/asm/pgtable-ppc64.h
··· 118 118 */ 119 119 #ifndef __real_pte 120 120 121 - #ifdef STRICT_MM_TYPECHECKS 121 + #ifdef CONFIG_STRICT_MM_TYPECHECKS 122 122 #define __real_pte(e,p) ((real_pte_t){(e)}) 123 123 #define __rpte_to_pte(r) ((r).pte) 124 124 #else