diff options
| -rw-r--r-- | arch/ia64/ia32/ia32_ioctl.c | 4 | ||||
| -rw-r--r-- | arch/mips/kernel/ioctl32.c | 4 | ||||
| -rw-r--r-- | arch/sparc64/kernel/ioctl32.c | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/arch/ia64/ia32/ia32_ioctl.c b/arch/ia64/ia32/ia32_ioctl.c index 164b211f4174..88739394f6df 100644 --- a/arch/ia64/ia32/ia32_ioctl.c +++ b/arch/ia64/ia32/ia32_ioctl.c | |||
| @@ -29,10 +29,8 @@ | |||
| 29 | #define CODE | 29 | #define CODE |
| 30 | #include "compat_ioctl.c" | 30 | #include "compat_ioctl.c" |
| 31 | 31 | ||
| 32 | typedef int (* ioctl32_handler_t)(unsigned int, unsigned int, unsigned long, struct file *); | ||
| 33 | |||
| 34 | #define COMPATIBLE_IOCTL(cmd) HANDLE_IOCTL((cmd),sys_ioctl) | 32 | #define COMPATIBLE_IOCTL(cmd) HANDLE_IOCTL((cmd),sys_ioctl) |
| 35 | #define HANDLE_IOCTL(cmd,handler) { (cmd), (ioctl32_handler_t)(handler), NULL }, | 33 | #define HANDLE_IOCTL(cmd,handler) { (cmd), (ioctl_trans_handler_t)(handler), NULL }, |
| 36 | #define IOCTL_TABLE_START \ | 34 | #define IOCTL_TABLE_START \ |
| 37 | struct ioctl_trans ioctl_start[] = { | 35 | struct ioctl_trans ioctl_start[] = { |
| 38 | #define IOCTL_TABLE_END \ | 36 | #define IOCTL_TABLE_END \ |
diff --git a/arch/mips/kernel/ioctl32.c b/arch/mips/kernel/ioctl32.c index ed9b2da510be..9ea1fc748864 100644 --- a/arch/mips/kernel/ioctl32.c +++ b/arch/mips/kernel/ioctl32.c | |||
| @@ -26,10 +26,8 @@ long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg); | |||
| 26 | #define CODE | 26 | #define CODE |
| 27 | #include "compat_ioctl.c" | 27 | #include "compat_ioctl.c" |
| 28 | 28 | ||
| 29 | typedef int (* ioctl32_handler_t)(unsigned int, unsigned int, unsigned long, struct file *); | ||
| 30 | |||
| 31 | #define COMPATIBLE_IOCTL(cmd) HANDLE_IOCTL((cmd),sys_ioctl) | 29 | #define COMPATIBLE_IOCTL(cmd) HANDLE_IOCTL((cmd),sys_ioctl) |
| 32 | #define HANDLE_IOCTL(cmd,handler) { (cmd), (ioctl32_handler_t)(handler), NULL }, | 30 | #define HANDLE_IOCTL(cmd,handler) { (cmd), (ioctl_trans_handler_t)(handler), NULL }, |
| 33 | #define IOCTL_TABLE_START \ | 31 | #define IOCTL_TABLE_START \ |
| 34 | struct ioctl_trans ioctl_start[] = { | 32 | struct ioctl_trans ioctl_start[] = { |
| 35 | #define IOCTL_TABLE_END \ | 33 | #define IOCTL_TABLE_END \ |
diff --git a/arch/sparc64/kernel/ioctl32.c b/arch/sparc64/kernel/ioctl32.c index 92e26304de90..c2e96daa5ab3 100644 --- a/arch/sparc64/kernel/ioctl32.c +++ b/arch/sparc64/kernel/ioctl32.c | |||
| @@ -92,10 +92,8 @@ static int fbiogscursor(unsigned int fd, unsigned int cmd, unsigned long arg) | |||
| 92 | return sys_ioctl (fd, FBIOSCURSOR, (unsigned long)p); | 92 | return sys_ioctl (fd, FBIOSCURSOR, (unsigned long)p); |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | typedef int (* ioctl32_handler_t)(unsigned int, unsigned int, unsigned long, struct file *); | ||
| 96 | |||
| 97 | #define COMPATIBLE_IOCTL(cmd) HANDLE_IOCTL((cmd),sys_ioctl) | 95 | #define COMPATIBLE_IOCTL(cmd) HANDLE_IOCTL((cmd),sys_ioctl) |
| 98 | #define HANDLE_IOCTL(cmd,handler) { (cmd), (ioctl32_handler_t)(handler), NULL }, | 96 | #define HANDLE_IOCTL(cmd,handler) { (cmd), (ioctl_trans_handler_t)(handler), NULL }, |
| 99 | #define IOCTL_TABLE_START \ | 97 | #define IOCTL_TABLE_START \ |
| 100 | struct ioctl_trans ioctl_start[] = { | 98 | struct ioctl_trans ioctl_start[] = { |
| 101 | #define IOCTL_TABLE_END \ | 99 | #define IOCTL_TABLE_END \ |
