]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc: Make STRICT_MM_TYPECHECKS a config option
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Mar 2015 09:11:56 +0000 (20:11 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 11 May 2015 09:53:59 +0000 (19:53 +1000)
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>
arch/powerpc/Kconfig.debug
arch/powerpc/include/asm/page.h
arch/powerpc/include/asm/pgtable-ppc64.h

index 0efa8f90a8f1055f040c9a62360c97d4aa4253e0..3a510f4a6b68cfe56f711ed81d46fcf1b2e0ee72 100644 (file)
@@ -19,6 +19,14 @@ config PPC_WERROR
        depends on !PPC_DISABLE_WERROR
        default y
 
+config STRICT_MM_TYPECHECKS
+       bool "Do extra type checking on mm types"
+       default n
+       help
+         This option turns on extra type checking for some mm related types.
+
+         If you don't know what this means, say N.
+
 config PRINT_STACK_DEPTH
        int "Stack depth to print" if DEBUG_KERNEL
        default 64
index 69c059887a2c0def2a13f566c385c3eca97c0a60..71294a6e976e9c338a81ac69981d3d3bd9a62144 100644 (file)
@@ -278,9 +278,7 @@ extern long long virt_phys_offset;
 
 #ifndef __ASSEMBLY__
 
-#undef STRICT_MM_TYPECHECKS
-
-#ifdef STRICT_MM_TYPECHECKS
+#ifdef CONFIG_STRICT_MM_TYPECHECKS
 /* These are used to make use of C type-checking. */
 
 /* PTE level */
index 43e6ad424c7fc30503db061360fbd1565811b17d..f951d9cf358af801483461f60d02e5d43e40dc10 100644 (file)
  */
 #ifndef __real_pte
 
-#ifdef STRICT_MM_TYPECHECKS
+#ifdef CONFIG_STRICT_MM_TYPECHECKS
 #define __real_pte(e,p)                ((real_pte_t){(e)})
 #define __rpte_to_pte(r)       ((r).pte)
 #else