diff options
Diffstat (limited to 'arch/x86/mm/kmemcheck')
-rw-r--r-- | arch/x86/mm/kmemcheck/kmemcheck.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/x86/mm/kmemcheck/kmemcheck.c b/arch/x86/mm/kmemcheck/kmemcheck.c index f03ee91ac46..a644f248451 100644 --- a/arch/x86/mm/kmemcheck/kmemcheck.c +++ b/arch/x86/mm/kmemcheck/kmemcheck.c | |||
@@ -67,17 +67,19 @@ int __init kmemcheck_init(void) | |||
67 | early_initcall(kmemcheck_init); | 67 | early_initcall(kmemcheck_init); |
68 | 68 | ||
69 | #ifdef CONFIG_KMEMCHECK_DISABLED_BY_DEFAULT | 69 | #ifdef CONFIG_KMEMCHECK_DISABLED_BY_DEFAULT |
70 | int kmemcheck_enabled = 0; | 70 | # define KMEMCHECK_ENABLED 0 |
71 | #endif | 71 | #endif |
72 | 72 | ||
73 | #ifdef CONFIG_KMEMCHECK_ENABLED_BY_DEFAULT | 73 | #ifdef CONFIG_KMEMCHECK_ENABLED_BY_DEFAULT |
74 | int kmemcheck_enabled = 1; | 74 | # define KMEMCHECK_ENABLED 1 |
75 | #endif | 75 | #endif |
76 | 76 | ||
77 | #ifdef CONFIG_KMEMCHECK_ONESHOT_BY_DEFAULT | 77 | #ifdef CONFIG_KMEMCHECK_ONESHOT_BY_DEFAULT |
78 | int kmemcheck_enabled = 2; | 78 | # define KMEMCHECK_ENABLED 2 |
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | int kmemcheck_enabled = KMEMCHECK_ENABLED; | ||
82 | |||
81 | /* | 83 | /* |
82 | * We need to parse the kmemcheck= option before any memory is allocated. | 84 | * We need to parse the kmemcheck= option before any memory is allocated. |
83 | */ | 85 | */ |