Re: 2.1.80 doesn't compile on alpha

Thomas Pornin (bip@orion.ens.fr)
Wed, 21 Jan 1998 18:03:25 +0100


In article <Pine.LNX.3.96.980121073521.589E-100000@wit389401.student.utwente.nl> you write:
>I get these errors when I compile 2.1.80 on a alpha-noname system:
>irq.c:570: wrong type argument to increment
>irq.c: In function `device_interrupt':
>irq.c:593: wrong type argument to increment
>irq.c: In function `probe_irq_off':

Apply the following patch :

--- linux/arch/alpha/kernel/irq.c.old Wed Jan 21 17:16:44 1998
+++ linux/arch/alpha/kernel/irq.c Wed Jan 21 17:51:13 1998
@@ -567,7 +567,7 @@
int cpu = smp_processor_id();

irq_enter(cpu, irq);
- kstat.interrupts[irq]++;
+ kstat.interrupts[cpu][irq]++;
if (!action) {
unexpected_irq(irq, regs);
} else {
@@ -590,7 +590,7 @@
}

irq_enter(cpu, irq);
- kstat.interrupts[irq]++;
+ kstat.interrupts[cpu][irq]++;
action = irq_action[irq];
/*
* For normal interrupts, we mask it out, and then ACK it.

>(warnings about __r16 snipped out)

You may want to install and use egcs-1.0.1. It does not generate the dummy
__r16 warnings and works like a charm for me (I also have a noname board).

--Thomas Pornin