[patch 1/3] fix defined but unused warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[email protected]>
---

 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 [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]
  Powered by Linux