Re: linux-2.0.23 compile error (aic7xxx.c)

Jochen Hoenicke (Jochen.Hoenicke@informatik.uni-oldenburg.de)
Thu, 24 Oct 96 16:06 MET DST


I had the same problem with linux-2.1.5. The fix is easy:

--- linux/drivers/scsi/aic7xxx.c.orig Thu Oct 17 20:23:55 1996
+++ linux/drivers/scsi/aic7xxx.c Thu Oct 17 21:54:30 1996
@@ -4314,12 +4314,14 @@
p->flags = config->flags;
p->chan_num = config->chan_num;
p->scb_link = &(p->scb_usage);
+#ifdef CONFIG_PCI
#ifdef AIC7XXX_SHARE_SCBS
if ((p->chan_num == 0) && ((p->type == AIC_7873) | (p->type == AIC_7883)))
{
shared_3985_scbs = &(p->scb_usage);
p->scb_link = &(p->scb_usage);
}
+#endif
#endif
p->scb_link->numscbs = 0;
p->bus_type = config->bus_type;

Jochen

Date: Tue, 22 Oct 1996 19:49:24 -0700 (MST)
From: Joseph Y Chen <jychen@celab3.ce.arizona.edu>

I get the following error:

[...]
gcc -I/usr/src/linux-2.0.23/include -o aic7xxx_asm aic7xxx_asm.c
./aic7xxx_asm -o aic7xxx_seq.h aic7xxx.seq
430 out of 448 instructions used.
gcc -D__KERNEL__ -I/usr/src/linux-2.0.23/include -Wall
-Wstrict-prototypes -O2 \
-fomit-frame-pointer -fno-strength-reduce -pipe -m486 -DCPU=486 -c -o
aic7xxx.\
o aic7xxx.c
aic7xxx.c: In function `aic7xxx_register':
aic7xxx.c:4320: `shared_3985_scbs' undeclared (first use this function)
aic7xxx.c:4320: (Each undeclared identifier is reported only once
aic7xxx.c:4320: for each function it appears in.)