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: [EMAIL PROTECTED] |
| Mobile: ++49 170 1876134 Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, [EMAIL PROTECTED] [44.130.8.19] |