kaio
[Top] [All Lists]

kaio patch on linux 2.2.14 kernel

To: kaio@xxxxxxxxxxx
Subject: kaio patch on linux 2.2.14 kernel
From: Gabor Dolla <agdolla@xxxxxxxxx>
Date: Tue, 29 Feb 2000 11:15:43 +0100 (CET)
Sender: owner-kaio@xxxxxxxxxxx
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>