Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Thorsten Kranzkowski <th@Marvin.DL8BCU.ampr.org>
To: Richard Henderson <rth@cygnus.com>
Cc: linux-alpha mailing list <linux-alpha@vger.rutgers.edu>,
	axp-list mailing list <axp-list@redhat.com>
Subject: [patch] warning: unused variable in irq.c
Date: Sat, 22 Jul 2000 13:54:49 +0000	[thread overview]
Message-ID: <20000722135448.A6766@Marvin.DL8BCU.ampr.org> (raw)

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


                 reply	other threads:[~2000-07-22 13:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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