Messages in this thread Patch in this message | | | Date | Tue, 17 Feb 1998 01:26:09 -0800 (PST) | From | Trevor Johnson <> | Subject | patch to 2.1.87 irq.c for i386 uniprocessor |
| |
Says gcc:
irq.c:731: warning: assignment of read-only variable `io_apic_irqs'
Says the code earlier in irq.c:
#ifndef __SMP__ static const unsigned int io_apic_irqs = 0; #else [...] unsigned int io_apic_irqs = 0; #endif
Here's a simple patch, which I compiled and am running without SMP. ___ Trevor Johnson
--- arch/i386/kernel/irq.c.orig Mon Feb 16 19:04:07 1998 +++ arch/i386/kernel/irq.c Tue Feb 17 00:33:05 1998 @@ -728,7 +728,9 @@
void make_8259A_irq (unsigned int irq) { +#ifdef __SMP__ io_apic_irqs &= ~(1<<irq); +#endif irq_handles[irq] = &i8259A_irq_type; disable_irq(irq); enable_irq(irq);
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |