[PATCH] !CONFIG_PCI handling in scsi.h, for 2.3.49

From: Craig Kulesa (ckulesa@loke.as.arizona.edu)
Date: Fri Mar 03 2000 - 06:13:22 EST


With changes made to the aic7xxx driver in 2.3.47+, the Adaptec aic7xxx
driver yields undefined references (breaking compilation) when
building without PCI support. This is bad news for those using the
EISA Adaptec 274x and VESA Adaptec 284x cards.

The offending function is scsi_to_pci_dma_dir(), which is defined in
drivers/scsi/scsi.h, but only if CONFIG_PCI is set.

Attached is a patch, against 2.3.48[9], which fixes the problem for me
(tested extensively on 486's w/o PCI, using Adaptec 2842 VLB cards).
This patch keeps #ifdefs out of the driver code; instead it adds a
compatibility inline function to drivers/scsi/scsi.h.

Another option is to leave scsi.h alone and patch the aic7xxx driver.
I have also made an aic7xxx patch, available separately. Please email me
if that is the preferred way to go.

Best regards,

Craig Kulesa
Steward Observatory
========================================================================



-
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/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:14 EST