kaio
[Top] [All Lists]

Re: kaio patch on linux 2.2.14 kernel

To: kaio@xxxxxxxxxxx
Subject: Re: kaio patch on linux 2.2.14 kernel
From: Gabor Dolla <agdolla@xxxxxxxxx>
Date: Tue, 29 Feb 2000 11:24:08 +0100 (CET)
In-reply-to: <Pine.BSF.4.10.10002291109520.56057-100000@xxxxxxxxxxxxxxxxx>
Sender: owner-kaio@xxxxxxxxxxx
sorry I forgot to mentioned, it is in sd.c

Gabor

On Tue, 29 Feb 2000, Gabor Dolla wrote:

> Hi
> 
> your patch didn't compile for me ...
> 
> #if defined(CONFIG_RAW) && defined(CONFIG_AIO)
> /*
>  * XXX Interfaces for AIO; ideally done through fops.
>  */
> int
> kaio_is_raw(struct file *filp)
> {
>       return(filp->f_op == &sd_raw_fops);
> }
>                             ^^^^^^^^^^^^^^
> it didn't find this global variable
> so I made a pre declaration prior to this function:
> 
> struct file_operations sd_raw_fops ;
> 
> the second problem was:
> 
> void *
> kaio_raw_rw(int rw, struct file *filp, char *buf, size_t count, loff_t
> *ppos, 
>         int *error, struct semaphore *semp, struct kiobuf *iobufp)
> {
>       return(sd_raw_rw(rw, filp, buf, count, ppos, error, semp, iobufp));
> }
> 
> the compiler said that sd_raw_rw needs 9 parameters
> 
> so I changed it to:
> return(sd_raw_rw(rw, filp, buf, count, ppos, error, semp, iobufp,
> AS_USER));
> 
> was it only my problem ?? did I make the right modofication??
> 
> thanks
> 
> Gabor
> 
> 
> 


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