[patch 1/3] fix defined but unused warning

From: blaisorblade
Date: Wed Mar 30 2005 - 13:38:35 EST



Fix "defined but unused" warning in kernel/sched.c.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx>
---

linux-2.6.11-paolo/kernel/sched.c | 2 ++
1 files changed, 2 insertions(+)

diff -puN kernel/sched.c~fix-def-notused-warn kernel/sched.c
--- linux-2.6.11/kernel/sched.c~fix-def-notused-warn 2005-03-27 22:14:49.000000000 +0200
+++ linux-2.6.11-paolo/kernel/sched.c 2005-03-27 22:15:00.000000000 +0200
@@ -314,7 +314,9 @@ static inline void task_rq_unlock(runque
static int show_schedstat(struct seq_file *seq, void *v)
{
int cpu;
+#ifdef CONFIG_SMP
enum idle_type itype;
+#endif

seq_printf(seq, "version %d\n", SCHEDSTAT_VERSION);
seq_printf(seq, "timestamp %lu\n", jiffies);
_
-
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/