[patch] warning: unused variable in irq.c

From: Thorsten Kranzkowski (th@Marvin.DL8BCU.ampr.org)
Date: Sat Jul 22 2000 - 08:54:49 EST


Hello!
This patch quietens gcc (gcc version 2.96 20000530 (experimental)) a bit.

kernel 2.4.0-test5-pre3
alpha AXPpci33 'noname'

gcc -D__KERNEL__ -I/usr/src/linux-2.4.0-test5-pre3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev4 -Wa,-mev6 -fno-strict-aliasing -c -o irq.o irq.c
irq.c: In function `register_irq_proc':
irq.c:362: warning: unused variable `entry'
irq.c: In function `init_irq_proc':
irq.c:392: warning: unused variable `entry'
irq.c: In function `get_irq_list':
irq.c:515: warning: unused variable `j'

Bye,
Thorsten

--- linux-2.4.0-test5-pre3/arch/alpha/kernel/irq.c Thu Jul 6 18:05:44 2000
+++ linux-2.4.0-test5-pre3-work/arch/alpha/kernel/irq.c Fri Jul 21 17:49:43 2000
@@ -359,7 +359,9 @@
 static void
 register_irq_proc (unsigned int irq)
 {
+#ifdef CONFIG_SMP
         struct proc_dir_entry *entry;
+#endif
         char name [MAX_NAMELEN];
 
         if (!root_irq_dir || (irq_desc[irq].handler == &no_irq_type))
@@ -389,7 +391,9 @@
 void
 init_irq_proc (void)
 {
+#ifdef CONFIG_SMP
         struct proc_dir_entry *entry;
+#endif
         int i;
 
         /* create /proc/irq */
@@ -512,7 +516,10 @@
 int
 get_irq_list(char *buf)
 {
- int i, j;
+ int i;
+#ifdef CONFIG_SMP
+ int j;
+#endif
         struct irqaction * action;
         char *p = buf;
 

-- 
| Thorsten Kranzkowski        Internet: dl8bcu@gmx.net                        |
| Mobile: ++49 170 1876134       Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |



This archive was generated by hypermail 2b29 : Sun Jul 23 2000 - 21:00:22 EST