remove ioctl32_handler_t
PATCH 1/1 remove ioctl32_handler_t
Some architectures define and use this type in their compat_ioctl code, but all of them can easily use the identical ioctl_trans_handler_t type that is defined in common code.
arch/ia64/ia32/ia32_ioctl.c +1 -3
@@ -29,10 +29,8 @@#define CODE #include "compat_ioctl.c" -typedef int (*ioctl32_handler_t )(unsigned int ,unsigned int ,unsigned long ,struct file *); -#define COMPATIBLE_IOCTL (cmd) HANDLE_IOCTL((cmd),sys_ioctl) -#define HANDLE_IOCTL (cmd,handler) { (cmd), (ioctl32_handler_t)(handler), NULL }, +#define HANDLE_IOCTL (cmd,handler) { (cmd), (ioctl_trans_handler_t)(handler), NULL },#define IOCTL_TABLE_START \ struct ioctl_trans ioctl_start[] = {#define IOCTL_TABLE_END \
arch/mips/kernel/ioctl32.c +1 -3
@@ -26,10 +26,8 @@#define CODE #include "compat_ioctl.c" -typedef int (*ioctl32_handler_t )(unsigned int ,unsigned int ,unsigned long ,struct file *); -#define COMPATIBLE_IOCTL (cmd) HANDLE_IOCTL((cmd),sys_ioctl) -#define HANDLE_IOCTL (cmd,handler) { (cmd), (ioctl32_handler_t)(handler), NULL }, +#define HANDLE_IOCTL (cmd,handler) { (cmd), (ioctl_trans_handler_t)(handler), NULL },#define IOCTL_TABLE_START \ struct ioctl_trans ioctl_start[] = {#define IOCTL_TABLE_END \
arch/sparc64/kernel/ioctl32.c +1 -3
@@ -462,10 +462,8 @@#endif -typedef int (*ioctl32_handler_t )(unsigned int ,unsigned int ,unsigned long ,struct file *); -#define COMPATIBLE_IOCTL (cmd) HANDLE_IOCTL((cmd),sys_ioctl) -#define HANDLE_IOCTL (cmd,handler) { (cmd), (ioctl32_handler_t)(handler), NULL }, +#define HANDLE_IOCTL (cmd,handler) { (cmd), (ioctl_trans_handler_t)(handler), NULL },#define IOCTL_TABLE_START \ struct ioctl_trans ioctl_start[] = {#define IOCTL_TABLE_END \