Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* [patch] warning: unused variable in irq.c
@ 2000-07-22 13:54 Thorsten Kranzkowski
  0 siblings, 0 replies; only message in thread
From: Thorsten Kranzkowski @ 2000-07-22 13:54 UTC (permalink / raw)
  To: Richard Henderson; +Cc: linux-alpha mailing list, axp-list mailing list

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] |


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-07-22 13:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-22 13:54 [patch] warning: unused variable in irq.c Thorsten Kranzkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox