Re: Linux 2.4.20-pre4-ac1

Adrian Bunk
2002-08-25T20:11:49Z

Hi Alan,

the inclusion of linux/ide.h in hd.c causes the following compile error:

<-- snip -->

...
gcc -D__KERNEL__
-I/home/bunk/linux/kernel-2.4/linux-2.4.19-full-nohotplug/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=k6 -I../ -nostdinc -iwithprefix
include -DKBUILD_BASENAME=hd -c -o hd.o hd.c
hd.c:88: conflicting types for `recal_intr'
/home/bunk/linux/kernel-2.4/linux-2.4.19-full-nohotplug/include/linux/ide.h:1496:
previous declaration of `recal_intr'
hd.c: In function `dump_status':
hd.c:181: `QUEUE_EMPTY' undeclared (first use in this function)
hd.c:181: (Each undeclared identifier is reported only once
hd.c:181: for each function it appears in.)
hd.c:181: `CURRENT' undeclared (first use in this function)
hd.c:179: warning: `devc' might be used uninitialized in this function
hd.c: In function `hd_out':
hd.c:294: `DEVICE_INTR' undeclared (first use in this function)
hd.c:294: `TIMEOUT_VALUE' undeclared (first use in this function)
...
make[4]: *** [hd.o] Error 1
make[4]: Leaving directory
`/home/bunk/linux/kernel-2.4/linux-2.4.19-full-nohotplug/drivers/ide/legacy'

<-- snip -->

cu
Adrian

--

You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
Alan Cox