aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-09-12 20:02:50 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2018-10-13 00:50:50 -0400
commit969ec01e992009200ecf7ba760f9fe8a95abf32a (patch)
tree5fd1311a8c39e06c6aa9ae630e779a1f2281c34c
parent9d1807daefc00c7b3a4ecca02e3a783263c1e00d (diff)
gigaset: add ->compat_ioctl()
... and get rid of COMPAT_IOCTL() for its private ioctls Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--drivers/isdn/gigaset/interface.c11
-rw-r--r--fs/compat_ioctl.c5
2 files changed, 11 insertions, 5 deletions
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c
index f9698c0c3885..d9a578ac32cd 100644
--- a/drivers/isdn/gigaset/interface.c
+++ b/drivers/isdn/gigaset/interface.c
@@ -233,6 +233,14 @@ static int if_ioctl(struct tty_struct *tty,
233 return retval; 233 return retval;
234} 234}
235 235
236#ifdef CONFIG_COMPAT
237static long if_compat_ioctl(struct tty_struct *tty,
238 unsigned int cmd, unsigned long arg)
239{
240 return if_ioctl(tty, cmd, (unsigned long)compat_ptr(arg));
241}
242#endif
243
236static int if_tiocmget(struct tty_struct *tty) 244static int if_tiocmget(struct tty_struct *tty)
237{ 245{
238 struct cardstate *cs = tty->driver_data; 246 struct cardstate *cs = tty->driver_data;
@@ -472,6 +480,9 @@ static const struct tty_operations if_ops = {
472 .open = if_open, 480 .open = if_open,
473 .close = if_close, 481 .close = if_close,
474 .ioctl = if_ioctl, 482 .ioctl = if_ioctl,
483#ifdef CONFIG_COMPAT
484 .compat_ioctl = if_compat_ioctl,
485#endif
475 .write = if_write, 486 .write = if_write,
476 .write_room = if_write_room, 487 .write_room = if_write_room,
477 .chars_in_buffer = if_chars_in_buffer, 488 .chars_in_buffer = if_chars_in_buffer,
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index ca2b51d9cb61..7eec04b6e757 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -1021,11 +1021,6 @@ COMPATIBLE_IOCTL(CAPI_SET_FLAGS)
1021COMPATIBLE_IOCTL(CAPI_CLR_FLAGS) 1021COMPATIBLE_IOCTL(CAPI_CLR_FLAGS)
1022COMPATIBLE_IOCTL(CAPI_NCCI_OPENCOUNT) 1022COMPATIBLE_IOCTL(CAPI_NCCI_OPENCOUNT)
1023COMPATIBLE_IOCTL(CAPI_NCCI_GETUNIT) 1023COMPATIBLE_IOCTL(CAPI_NCCI_GETUNIT)
1024/* Siemens Gigaset */
1025COMPATIBLE_IOCTL(GIGASET_REDIR)
1026COMPATIBLE_IOCTL(GIGASET_CONFIG)
1027COMPATIBLE_IOCTL(GIGASET_BRKCHARS)
1028COMPATIBLE_IOCTL(GIGASET_VERSION)
1029/* Misc. */ 1024/* Misc. */
1030COMPATIBLE_IOCTL(0x41545900) /* ATYIO_CLKR */ 1025COMPATIBLE_IOCTL(0x41545900) /* ATYIO_CLKR */
1031COMPATIBLE_IOCTL(0x41545901) /* ATYIO_CLKW */ 1026COMPATIBLE_IOCTL(0x41545901) /* ATYIO_CLKW */