Commit f1e7c202 authored by Michael Ellerman's avatar Michael Ellerman

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: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 2222ce0f
...@@ -19,6 +19,14 @@ config PPC_WERROR ...@@ -19,6 +19,14 @@ config PPC_WERROR
depends on !PPC_DISABLE_WERROR depends on !PPC_DISABLE_WERROR
default y 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 config PRINT_STACK_DEPTH
int "Stack depth to print" if DEBUG_KERNEL int "Stack depth to print" if DEBUG_KERNEL
default 64 default 64
......
...@@ -278,9 +278,7 @@ extern long long virt_phys_offset; ...@@ -278,9 +278,7 @@ extern long long virt_phys_offset;
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#undef STRICT_MM_TYPECHECKS #ifdef CONFIG_STRICT_MM_TYPECHECKS
#ifdef STRICT_MM_TYPECHECKS
/* These are used to make use of C type-checking. */ /* These are used to make use of C type-checking. */
/* PTE level */ /* PTE level */
......
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
*/ */
#ifndef __real_pte #ifndef __real_pte
#ifdef STRICT_MM_TYPECHECKS #ifdef CONFIG_STRICT_MM_TYPECHECKS
#define __real_pte(e,p) ((real_pte_t){(e)}) #define __real_pte(e,p) ((real_pte_t){(e)})
#define __rpte_to_pte(r) ((r).pte) #define __rpte_to_pte(r) ((r).pte)
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment