[PATCH] kmemcheck: build fix

From: Ingo Molnar
Date: Mon Sep 08 2008 - 10:50:43 EST


fix:

arch/x86/mm/kmemcheck/kmemcheck.c: In function âkmemcheck_initâ:
arch/x86/mm/kmemcheck/kmemcheck.c:42: error: âsetup_max_cpusâ undeclared (first use in this function)
arch/x86/mm/kmemcheck/kmemcheck.c:42: error: (Each undeclared identifier is reported only once
arch/x86/mm/kmemcheck/kmemcheck.c:42: error: for each function it appears in.)

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
arch/x86/mm/kmemcheck/kmemcheck.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/x86/mm/kmemcheck/kmemcheck.c b/arch/x86/mm/kmemcheck/kmemcheck.c
index eef8c6a..75831f0 100644
--- a/arch/x86/mm/kmemcheck/kmemcheck.c
+++ b/arch/x86/mm/kmemcheck/kmemcheck.c
@@ -35,6 +35,7 @@ void __init kmemcheck_init(void)
{
printk(KERN_INFO "kmemcheck: \"Bugs, beware!\"\n");

+#if defined(CONFIG_SMP) && !defined(CONFIG_KMEMCHECK_USE_SMP)
/*
* Limit SMP to use a single CPU. We rely on the fact that this code
* runs before SMP is set up.
@@ -44,6 +45,7 @@ void __init kmemcheck_init(void)
"kmemcheck: Limiting number of CPUs to 1.\n");
setup_max_cpus = 1;
}
+#endif
}

#ifdef CONFIG_KMEMCHECK_DISABLED_BY_DEFAULT
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/