mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][2.5.66] ioctl32 breakage on x86_64
@ 2003-04-03 14:51 mikpe
  2003-04-03 15:14 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: mikpe @ 2003-04-03 14:51 UTC (permalink / raw)
  To: ak; +Cc: linux-kernel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-03 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-03 14:51 [PATCH][2.5.66] ioctl32 breakage on x86_64 mikpe
2003-04-03 15:14 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®