* [patch, -rc5-mm2] lock validator: fix compiler warning
@ 2006-06-02 14:08 Ingo Molnar
0 siblings, 0 replies; only message in thread
From: Ingo Molnar @ 2006-06-02 14:08 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
Subject: lock validator: fix compiler warning
From: Ingo Molnar <mingo@elte.hu>
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@elte.hu>
---
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?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-02 14:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-02 14:08 [patch, -rc5-mm2] lock validator: fix compiler warning Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome