From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 13669 invoked from network); 22 Jul 2000 13:55:05 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 22 Jul 2000 13:55:05 -0000 Received: from Marvin.DL8BCU.ampr.org (root@pec-20-109.tnt9.h2.uunet.de [149.225.20.109]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id JAA29313 for ; Sat, 22 Jul 2000 09:55:04 -0400 Received: (from th@localhost) by Marvin.DL8BCU.ampr.org (8.11.0.Beta3/8.11.0.Beta3) id e6MDso606845; Sat, 22 Jul 2000 13:54:50 GMT Date: Sat, 22 Jul 2000 13:54:49 +0000 From: Thorsten Kranzkowski To: Richard Henderson Cc: linux-alpha mailing list , axp-list mailing list Subject: [patch] warning: unused variable in irq.c Message-ID: <20000722135448.A6766@Marvin.DL8BCU.ampr.org> Reply-To: dl8bcu@gmx.net Mail-Followup-To: Richard Henderson , linux-alpha mailing list , axp-list mailing list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i 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] |