lkml.org 
[lkml]   [1998]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectpatch 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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.049 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site