From 9756b55de5749b495481be4b30b87d6162b14f62 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 19 Jul 2011 19:13:12 +0200 Subject: Fix few compilation issues with recent kernels --- driver/ioctl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'driver/ioctl.c') diff --git a/driver/ioctl.c b/driver/ioctl.c index 0059833..43a3cf7 100644 --- a/driver/ioctl.c +++ b/driver/ioctl.c @@ -414,7 +414,11 @@ static int ioctl_clear_ioq(pcidriver_privdata_t *privdata, unsigned long arg) * @returns -EFAULT when an invalid memory pointer is passed * */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11) int pcidriver_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg) +#else +long pcidriver_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) +#endif { pcidriver_privdata_t *privdata = filp->private_data; -- cgit v1.2.3