Re: SCSI build problem with Linux-1.3.37

Stefan G. Berg (sgberg@cs.washington.edu)
Mon, 6 Nov 1995 10:32:06 -0800 (PST)


Maybe this isn't the right thing to do, but I just added the following
two #define's to /usr/src/linux/include/linux/pci.h

#define PCI_DEVICE_ID_ADAPTEC_2940 0x7178
#define PCI_DEVICE_ID_ADAPTEC_294x 0x7078

Looking at an older kernel I noticed that the include file used to
contain the above two lines, but that they have now been replaced by

#define PCI_DEVICE_ID_ADAPTEC_7870 0x7078
#define PCI_DEVICE_ID_ADAPTEC_7871 0x7178

I guess somebody forgot to update the scsi driver. Anyway, this patch
works fine with my 2940 controller and 4GB, 501MB drives and a tape
drive. Don't blame me if your system goes up in a little mushroom cloud
and you have to relocate the whole neighborhood.

Stefan

On Sun, 5 Nov 1995, Rob Browning wrote:

> First, an aside: I'm only now getting messages that were addressed to
> linux-kernel back on Oct 25 (specifically, messages from Linus were
> the ones I noticed).
>
> 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
> )
> aic7xxx.c: At top level:
> aic7xxx.c:1163: warning: `debug_scb' defined but not used
> make[2]: *** [aic7xxx.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-1.3.37/drivers/scsi'
> make[1]: *** [sub_dirs] Error 2
> make[1]: Leaving directory `/usr/src/linux-1.3.37/drivers'
> make: *** [linuxsubdirs] Error 2
>
> --
> Rob