Error while compiling 2.0.9

Rajko Albrecht (Rajko.Albrecht@informatik.tu-chemnitz.de)
Fri, 26 Jul 1996 20:07:53 +0200 (MET DST)


Hi,

as I trie to compile linux-2.0.9, I've got following message:

gcc -D__KERNEL__ -I/usr/src/linux-2.0.9/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m386 -DCPU=386 -c -o
ide.o ide.c
ide.c: In function `try_to_identify':
ide.c:2404: `hd_status' undeclared (first use this function)
ide.c:2404: (Each undeclared identifier is reported only once
ide.c:2404: for each function it appears in.)
make[3]: *** [ide.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.0.9/drivers/block'

Then I looked into the ide.c, and found followin:

#ifdef CONFIG_BLK_DEV_CMD640
int retry = 0;
int hd_status;
try_again:
#endif

...
}
else
hd_status = IDE_ALTSTATUS_REG;
^^^^^^^^^--------------------------> of course here it isn't
known if not defined CONFIG_BLK_DEV_CMD640..

My question: Is it a bug or is it an error I did? I compile now with
CONFIG_BLK_DEV_CMD640, but I don't need it I think, I don't have this
chipset......

Hope to get some answers...

Rajko