Search
j0ke.net Open Build Service
>
Projects
>
ha
>
iscsitarget
> iscsitarget-0.4.12-kernel-compat-2.6.10.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File iscsitarget-0.4.12-kernel-compat-2.6.10.patch of Package iscsitarget
diff -ru kernel/config.c kernel/config.c --- kernel/config.c 2005-09-12 06:03:38.000000000 -0400 +++ kernel/config.c 2005-09-16 12:05:31.000000000 -0400 @@ -5,7 +5,7 @@ */ #include <linux/proc_fs.h> - +#include <linux/version.h> #include "iscsi.h" #include "iscsi_dbg.h" @@ -216,10 +216,18 @@ return err; } +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,11) static long ioctl(struct file *file, unsigned int cmd, unsigned long arg) +#else +static int ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) +#endif { struct iscsi_target *target = NULL; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,11) long err; +#else + int err; +#endif u32 id; if ((err = get_user(id, (u32 *) arg)) != 0) @@ -309,5 +317,9 @@ struct file_operations ctr_fops = { .owner = THIS_MODULE, - .unlocked_ioctl = ioctl, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,11) + .unlocked_ioctl = ioctl, +#else + .ioctl = ioctl, +#endif };