[patch, -rc5-mm2] lock validator: fix compiler warning

From: Ingo Molnar
Date: Fri Jun 02 2006 - 10:07:40 EST


Subject: lock validator: fix compiler warning
From: Ingo Molnar <mingo@xxxxxxx>

fix harmless lockdep.c warning on !SMP:

kernel/lockdep.c: In function 'static_obj':
kernel/lockdep.c:1112: warning: unused variable 'i'

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
kernel/lockdep.c | 2 ++
1 file changed, 2 insertions(+)

Index: linux/kernel/lockdep.c
===================================================================
--- linux.orig/kernel/lockdep.c
+++ linux/kernel/lockdep.c
@@ -1109,7 +1109,9 @@ static int static_obj(void *obj)
unsigned long start = (unsigned long) &_stext,
end = (unsigned long) &_end,
addr = (unsigned long) obj;
+#ifdef CONFIG_SMP
int i;
+#endif

/*
* static variable?
-
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/