tty: add compat_ioctl callbacks
authorAleksa Sarai <asarai@suse.de>
Sat, 3 Jun 2017 14:15:14 +0000 (00:15 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2017 09:27:20 +0000 (11:27 +0200)
commit5f0f187fd0cc755cfa7d51b50f68a16fca41c813
treeddab2897629fe8f84dec6f1af51fe00128f33828
parentbea8be656185a2808a2f255f4a91ff18215a9d0c
tty: add compat_ioctl callbacks

In order to avoid future diversions between fs/compat_ioctl.c and
drivers/tty/pty.c, define .compat_ioctl callbacks for the relevant
tty_operations structs. Since both pty_unix98_ioctl() and
pty_bsd_ioctl() are compatible between 32-bit and 64-bit userspace no
special translation is required.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c
fs/compat_ioctl.c