projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b53b76
)
kmemcheck: remove multiple ifdef'd definitions of the same global variable
author
Pekka Enberg
<penberg@cs.helsinki.fi>
Thu, 26 Feb 2009 09:17:31 +0000
(11:17 +0200)
committer
Vegard Nossum
<vegard.nossum@gmail.com>
Mon, 15 Jun 2009 10:39:57 +0000
(12:39 +0200)
Multiple ifdef'd definitions of the same global variable is ugly and
error-prone. Fix that up.
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
arch/x86/mm/kmemcheck/kmemcheck.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/kmemcheck/kmemcheck.c
b/arch/x86/mm/kmemcheck/kmemcheck.c
index
f03ee91
..
a644f24
100644
(file)
--- a/
arch/x86/mm/kmemcheck/kmemcheck.c
+++ b/
arch/x86/mm/kmemcheck/kmemcheck.c
@@
-67,17
+67,19
@@
int __init kmemcheck_init(void)
early_initcall(kmemcheck_init);
#ifdef CONFIG_KMEMCHECK_DISABLED_BY_DEFAULT
-int kmemcheck_enabled = 0;
+# define KMEMCHECK_ENABLED 0
#endif
#ifdef CONFIG_KMEMCHECK_ENABLED_BY_DEFAULT
-int kmemcheck_enabled = 1;
+# define KMEMCHECK_ENABLED 1
#endif
#ifdef CONFIG_KMEMCHECK_ONESHOT_BY_DEFAULT
-int kmemcheck_enabled = 2;
+# define KMEMCHECK_ENABLED 2
#endif
+int kmemcheck_enabled = KMEMCHECK_ENABLED;
+
/*
* We need to parse the kmemcheck= option before any memory is allocated.
*/