linux-2.1.125 aic7xxx 5.1 no-compile on non PCI

Greg Zornetzer (gaz@andrew.cmu.edu)
Fri, 9 Oct 1998 17:38:27 -0400 (EDT)


The new AIC7xxx driver in 2.1.125 won't compile on non-PCI systems (mine
is EISA), as a call to aic7xxx_pci_intr() wasn't placed in an #ifdef
CONFIG_PCI. The band-aid follows (untested, but it does compile. I have
no idea if there's something deeper going on.

Greg Zornetzer - gaz+@andrew.cmu.edu
"Light shines brightest in the darkest night"
http://www.contrib.andrew.cmu.edu/~gaz

--- linux/drivers/scsi/aic7xxx.c.bak Fri Oct 9 16:16:31 1998
+++ linux/drivers/scsi/aic7xxx.c Fri Oct 9 17:35:08 1998
@@ -6281,8 +6281,10 @@
(((aic_inb(p, SEQADDR1) << 8) & 0x100) | aic_inb(p, SEQADDR0)));
if (aic7xxx_panic_on_abort)
aic7xxx_panic_abort(p, NULL);
+#ifdef CONFIG_PCI
if (errno & PCIERRSTAT)
aic7xxx_pci_intr(p);
+#endif
if (errno & (SQPARERR | ILLOPCODE | ILLSADDR))
{
sti();

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/