[2.5.66] ioctl32 breakage on x86_64
PATCH 1/1 [2.5.66] ioctl32 breakage on x86_64
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
arch/x86_64/ia32/ia32_ioctl.c renamed from arch/x86_64/ia32/ia32_ioctl.c.~1~ +1 -1
@@ -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) {
include/linux/ioctl32.h renamed from include/linux/ioctl32.h.~1~ +1 -1
@@ -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.
Quoted 4 lines · On Thu, Apr 03, 2003 at 04:51:55PM +0200, [email protected] wrote:
IA32 emulation on
x86_64doesn't compile in 2.5.66 due to conflicting declarations ofsys_ioctl(). The patch below is a quick fix to make both the generic ioctl32 one and x86_64's private one agree with reality.
Already fixed in my tree, not merged to Linus yet
(see the latest patch on ftp://ftp.x86-64.org/pub/linux/v2.5 and the release notes there as usual)
-Andi