Re: SCSI build problem with Linux-1.3.37

Robin Cutshaw (robin@intercore.com)
Mon, 6 Nov 1995 09:09:30 -0500 (EST)


> Anyway, while trying to do a "make zImage" with 1.3.37, I got the
> following error (I'm compiling support for the adaptec 2940):
>
> make[2]: Entering directory `/usr/src/linux-1.3.37/drivers/scsi'
> gcc -D__KERNEL__ -I/usr/src/linux-1.3.37/include -Wall -Wstrict-prototypes -O2 -
> fomit-frame-pointer -pipe -m486 -c -o aic7xxx.o aic7xxx.c
> aic7xxx.c: In function `aic7xxx_detect':
> aic7xxx.c:3979: `PCI_DEVICE_ID_ADAPTEC_294x' undeclared (first use this function
> )
> aic7xxx.c:3979: (Each undeclared identifier is reported only once
> aic7xxx.c:3979: for each function it appears in.)
> aic7xxx.c:3982: `PCI_DEVICE_ID_ADAPTEC_2940' undeclared (first use this function

I sent a note on this a few days ago. Here's a diff to correct it:

*** aic7xxx.c.ORIG Mon Oct 23 07:21:53 1995
--- aic7xxx.c Mon Oct 30 13:52:06 1995
***************
*** 3976,3985 ****
while (!done)
{
if ((!pcibios_find_device(PCI_VENDOR_ID_ADAPTEC,
! PCI_DEVICE_ID_ADAPTEC_294x,
index, &pci_bus, &pci_device_fn)) ||
(!pcibios_find_device(PCI_VENDOR_ID_ADAPTEC,
! PCI_DEVICE_ID_ADAPTEC_2940,
index, &pci_bus, &pci_device_fn)))
{
type = AIC_7870;
--- 3976,3985 ----
while (!done)
{
if ((!pcibios_find_device(PCI_VENDOR_ID_ADAPTEC,
! PCI_DEVICE_ID_ADAPTEC_7870,
index, &pci_bus, &pci_device_fn)) ||
(!pcibios_find_device(PCI_VENDOR_ID_ADAPTEC,
! PCI_DEVICE_ID_ADAPTEC_7871,
index, &pci_bus, &pci_device_fn)))
{
type = AIC_7870;

robin