X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2FLINUX%2Fosi_ioctl.c;h=9ba076a1b20a4fd517e2739d2e642c41c3721ad5;hp=1646a151825217ceab273bcbfdeb61d9f4e4e996;hb=13a49aaf0d5c43bce08135edaabb65587e1a8031;hpb=f5051b87a56b3a4f7fd7188cbd16a663eee8abbf diff --git a/src/afs/LINUX/osi_ioctl.c b/src/afs/LINUX/osi_ioctl.c index 1646a15..9ba076a 100644 --- a/src/afs/LINUX/osi_ioctl.c +++ b/src/afs/LINUX/osi_ioctl.c @@ -25,10 +25,6 @@ #include #endif -#if defined(AFS_SPARC64_LINUX26_ENV) && defined(NEED_IOCTL32) && !defined(HAVE_COMPAT_IOCTL) -#include -#endif - #include #include #include @@ -37,9 +33,6 @@ #include "osi_compat.h" extern struct proc_dir_entry *openafs_procfs; -#if defined(NEED_IOCTL32) && !defined(HAVE_COMPAT_IOCTL) -static int ioctl32_done; -#endif extern asmlinkage long afs_syscall(long syscall, long parm1, long parm2, long parm3, long parm4); @@ -85,12 +78,11 @@ afs_ioctl(struct inode *inode, struct file *file, unsigned int cmd, } } -#if defined(HAVE_UNLOCKED_IOCTL) || defined(HAVE_COMPAT_IOCTL) static long afs_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { return afs_ioctl(FILE_INODE(file), file, cmd, arg); } -#endif + #if defined(HAVE_LINUX_STRUCT_PROC_OPS) static struct proc_ops afs_syscall_ops = { .proc_ioctl = afs_unlocked_ioctl, @@ -100,16 +92,11 @@ static struct proc_ops afs_syscall_ops = { }; #else static struct file_operations afs_syscall_ops = { -# ifdef HAVE_UNLOCKED_IOCTL .unlocked_ioctl = afs_unlocked_ioctl, -# else - .ioctl = afs_ioctl, -# endif -# ifdef HAVE_COMPAT_IOCTL .compat_ioctl = afs_unlocked_ioctl, -# endif }; #endif /* HAVE_LINUX_STRUCT_PROC_OPS */ + void osi_ioctl_init(void) { @@ -121,18 +108,10 @@ osi_ioctl_init(void) entry->owner = THIS_MODULE; #endif -#if defined(NEED_IOCTL32) && !defined(HAVE_COMPAT_IOCTL) - if (register_ioctl32_conversion(VIOC_SYSCALL32, NULL) == 0) - ioctl32_done = 1; -#endif } void osi_ioctl_clean(void) { remove_proc_entry(PROC_SYSCALL_NAME, openafs_procfs); -#if defined(NEED_IOCTL32) && !defined(HAVE_COMPAT_IOCTL) - if (ioctl32_done) - unregister_ioctl32_conversion(VIOC_SYSCALL32); -#endif }