[PATCH][2.5.66] ioctl32 breakage on x86_64

From: mikpe@csd.uu.se
Date: Thu Apr 03 2003 - 09:51:55 EST


IA32 emulation on x86_64 doesn't compile in 2.5.66 due to
conflicting declarations of sys_ioctl(). The patch below
is a quick fix to make both the generic ioctl32 one and
x86_64's private one agree with reality.

/Mikael

--- linux-2.5.66/arch/x86_64/ia32/ia32_ioctl.c.~1~ 2003-03-08 17:22:31.000000000 +0100
+++ linux-2.5.66/arch/x86_64/ia32/ia32_ioctl.c 2003-04-03 15:24:12.000000000 +0200
@@ -121,7 +121,7 @@
 #define EXT2_IOC32_GETVERSION _IOR('v', 1, int)
 #define EXT2_IOC32_SETVERSION _IOW('v', 2, int)
 
-extern asmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
+extern asmlinkage long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
 
 static int w_long(unsigned int fd, unsigned int cmd, unsigned long arg)
 {
--- linux-2.5.66/include/linux/ioctl32.h.~1~ 2003-03-25 22:17:40.000000000 +0100
+++ linux-2.5.66/include/linux/ioctl32.h 2003-04-03 15:22:49.000000000 +0200
@@ -3,7 +3,7 @@
 
 struct file;
 
-extern long sys_ioctl(unsigned int, unsigned int, unsigned long);
+extern asmlinkage long sys_ioctl(unsigned int, unsigned int, unsigned long);
 
 /*
  * Register an 32bit ioctl translation handler for ioctl cmd.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Apr 07 2003 - 22:00:20 EST