diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-06-03 23:07:12 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-10-23 17:23:46 +0200 |
commit | c7dc504e2ff78a0bed3c36a44dff73f523ce0132 (patch) | |
tree | 1ba19f80bcc651d328823e81d23d7fb9c4c66320 /drivers/tty | |
parent | 9d7bf41fafa5b5ddd4c13eb39446b0045f0a8167 (diff) | |
download | linux-c7dc504e2ff78a0bed3c36a44dff73f523ce0132.tar.gz linux-c7dc504e2ff78a0bed3c36a44dff73f523ce0132.tar.bz2 linux-c7dc504e2ff78a0bed3c36a44dff73f523ce0132.zip |
compat_ioctl: move SIOCOUTQ out of compat_ioctl.c
All users of this call are in socket or tty code, so handling
it there means we can avoid the table entry in fs/compat_ioctl.c.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Eric Dumazet <edumazet@google.com>
Cc: netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/tty_io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index 802c1210558f..c09691b20a25 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -2755,6 +2755,7 @@ static long tty_compat_ioctl(struct file *file, unsigned int cmd, int retval = -ENOIOCTLCMD; switch (cmd) { + case TIOCOUTQ: case TIOCSTI: case TIOCGWINSZ: case TIOCSWINSZ: |