xfs
[Top] [All Lists]

Re: loop-6 and the XFS tree

To: Thomas Graichen <thomas.graichen@xxxxxxxxxxxxxx>
Subject: Re: loop-6 and the XFS tree
From: Jens Axboe <axboe@xxxxxxx>
Date: Tue, 27 Feb 2001 15:38:39 +0100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <news2mail-97fo1e$rb$3@xxxxxxxxxxxxxxxxxxxxxx>; from news-innominate.list.sgi.xfs@xxxxxxxxxxxxx on Tue, Feb 27, 2001 at 08:21:02AM +0000
References: <news2mail-97fo1e$rb$3@xxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Tue, Feb 27 2001, Thomas Graichen wrote:
> just tried to apply the loop-6 patch to the XFS tree (which works
> fine with plain 2.4.2) i ran into the following:
> 
> kgcc  -D__KERNEL__ -I/tmp/linux/include  -Wall -Wstrict-prototypes -O2 
> -fno-strict-aliasing -pipe  -march=i686    -c -o rd.o rd.c
> rd.c: In function `rd_init':
> rd.c:408: warning: passing arg 2 of `blk_queue_make_request' from 
> incompatible pointer type
> kgcc  -D__KERNEL__ -I/tmp/linux/include  -Wall -Wstrict-prototypes -O2 
> -fno-strict-aliasing -pipe  -march=i686    -DEXPORT_SYMTAB -c loop.c
> loop.c: In function `loop_make_request':
> loop.c:451: too few arguments to function `generic_make_request'
> loop.c: In function `loop_init':
> loop.c:954: warning: passing arg 2 of `blk_queue_make_request' from 
> incompatible pointer type
> make[3]: *** [loop.o] Error 1
> make[3]: Leaving directory `/tmp/linux/drivers/block'
> make[2]: *** [first_rule] Error 2
> make[2]: Leaving directory `/tmp/linux/drivers/block'
> make[1]: *** [_subdir_block] Error 2
> make[1]: Leaving directory `/tmp/linux/drivers'
> make: *** [_dir_drivers] Error 2
> 
> ... and because i think jens is lurking around here i try to
> ask first before looking into it ... maybe he already has
> a fix handy

Yeah, the lurker, that's me :-)

Anways, change the generic_make_request in loop to something like:

        generic_make_request(rw, bh, NULL, 0, 0, 0);
        return 0;

and loop_make_request definition to:

static int loop_make_request(request_queue_t *q, int rw,
                             struct buffer_head *rbh, struct kio_buf *kio,
                             kdev_t dev, unsigned long block, size_t bsize)

and it should work.

-- 
Jens Axboe


<Prev in Thread] Current Thread [Next in Thread>