2002-06-11 21:33:31

by Paolo Ciarrocchi

[permalink] [raw]
Subject: [2.5.21] compile error

Hi all,
I've just tried to compile the 2.5.21,
but I got these errors:

make[2]: Entering directory `/usr/src/linux-2.5.21/drivers/ide'
gcc -Wp,-MD,.ataraid.o.d -D__KERNEL__ -I/usr/src/linux-2.5.21/include -Wall -W
strict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -
fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix
include -DMODULE -include /usr/src/linux-2.5.21/include/linux/modversions.h -
DKBUILD_BASENAME=ataraid -DEXPORT_SYMTAB -c -o ataraid.o ataraid.c
ataraid.c: In function `ataraid_make_request':
ataraid.c:101: dereferencing pointer to incomplete type
ataraid.c:99: warning: `minor' might be used uninitialized in this function
ataraid.c: In function `ataraid_get_bhead_R1616d035':
ataraid.c:119: sizeof applied to an incomplete type
ataraid.c: In function `ataraid_end_request_R6a133f58':
ataraid.c:143: dereferencing pointer to incomplete type
ataraid.c:149: dereferencing pointer to incomplete type
ataraid.c: In function `ataraid_split_request':
ataraid.c:172: dereferencing pointer to incomplete type
ataraid.c:172: dereferencing pointer to incomplete type
ataraid.c:172: dereferencing pointer to incomplete type
ataraid.c:173: dereferencing pointer to incomplete type
ataraid.c:173: dereferencing pointer to incomplete type
ataraid.c:173: dereferencing pointer to incomplete type
ataraid.c:175: dereferencing pointer to incomplete type
ataraid.c:176: dereferencing pointer to incomplete type
ataraid.c:178: dereferencing pointer to incomplete type
ataraid.c:178: dereferencing pointer to incomplete type
ataraid.c:179: dereferencing pointer to incomplete type
ataraid.c:180: dereferencing pointer to incomplete type
ataraid.c:183: dereferencing pointer to incomplete type
ataraid.c:184: dereferencing pointer to incomplete type
ataraid.c:187: dereferencing pointer to incomplete type
ataraid.c:187: dereferencing pointer to incomplete type
ataraid.c:189: warning: passing arg 1 of `generic_make_request_R3b6085bd' makes
pointer from integer without a cast
ataraid.c:189: too many arguments to function `generic_make_request_R3b6085bd'
ataraid.c:190: warning: passing arg 1 of `generic_make_request_R3b6085bd' makes
pointer from integer without a cast
ataraid.c:190: too many arguments to function `generic_make_request_R3b6085bd'
ataraid.c: In function `ataraid_init':
ataraid.c:266: warning: passing arg 2 of `blk_queue_make_request_R49fe4a71' from
incompatible pointer type
make[2]: *** [ataraid.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5.21/drivers/ide'
make[1]: *** [_subdir_ide] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.21/drivers'
make: *** [drivers] Error 2

gcc version 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk))

Let me know if you need further information and, please cc' me because I'm not a subscriber of the list.

Many thanks,

-- PC
--
Get your free email from http://www.linuxmail.org


Powered by Outblaze


2002-06-11 23:34:17

by Dave Jones

[permalink] [raw]
Subject: Re: [2.5.21] compile error

On Wed, Jun 12, 2002 at 05:33:24AM +0800, Paolo Ciarrocchi wrote:
> Hi all,
> I've just tried to compile the 2.5.21,
> but I got these errors:
>
> ataraid.c:101: dereferencing pointer to incomplete type

Old news. ataraid hasn't been touched since the block layer
first started getting mangling in 2.5, and hence needs quite
a bit of work.

See http://www.codemonkey.org.uk/Linux-2.5.html for this, and more.

Dave.

--
| Dave Jones. http://www.codemonkey.org.uk
| SuSE Labs

2002-06-13 10:55:14

by Jens Axboe

[permalink] [raw]
Subject: Re: [2.5.21] compile error

On Wed, Jun 12 2002, Dave Jones wrote:
> On Wed, Jun 12, 2002 at 05:33:24AM +0800, Paolo Ciarrocchi wrote:
> > Hi all,
> > I've just tried to compile the 2.5.21,
> > but I got these errors:
> >
> > ataraid.c:101: dereferencing pointer to incomplete type
>
> Old news. ataraid hasn't been touched since the block layer
> first started getting mangling in 2.5, and hence needs quite
> a bit of work.

I've fixed the ataraid stuff + hpt and pdc, however it needs two pieces
of infrastructure that are currently missing (independent bi_voffset so
we don't screw with the bio_vec->bv_offset members, and a nice bio_split
interface (currently done with bio_clone + driver mess)).

I'll post it soon.

--
Jens Axboe