[PATCH] 2.1.89-pre5 compilation problems

Bernhard Rosenkraenzer (root@bero-online.ml.org)
Sun, 1 Mar 1998 18:58:44 +0100 (CET)


Hello,
2.1.89-pre5 doesn't compile on non-SMP ix86 systems (undefined reference
to enable_IO_APIC_irq).

The following patch fixes it:

--- irq.c~ Sun Mar 1 18:36:12 1998
+++ irq.c Sun Mar 1 18:56:16 1998
@@ -174,12 +174,16 @@

void unmask_generic_irq(unsigned int irq)
{
+#ifdef __SMP__
if (IO_APIC_IRQ(irq))
enable_IO_APIC_irq(irq);
else {
+#endif
cached_irq_mask &= ~(1 << irq);
set_8259A_irq_mask(irq);
+#ifdef __SMP__
}
+#endif
}

/*

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu