Subject: lock validator: fix compiler warning
From: Ingo Molnar <[email protected]>
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 <[email protected]>
---
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]