diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-06-20 22:34:13 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-17 17:04:41 +0200 |
commit | 6509f3096263ca2714ec938439a832b302a3a65e (patch) | |
tree | 1b9ccb0b95178e4b93efa4faec7412bcd79c64ef /arch/xtensa | |
parent | 3ee5447e8cd9a65d08fbb49fa9767cbf7fef6d91 (diff) |
tty: hide unused pty_get_peer function
TIOCGPTPEER is only used for unix98 PTYs, and we get a warning
when those are disabled:
drivers/tty/pty.c:466:12: error: 'pty_get_peer' defined but not used [-Werror=unused-function]
This moves the respective functions inside of the existing #ifdef.
Fixes: 54ebbfb16034 ("tty: add TIOCGPTPEER ioctl")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Aleksa Sarai <asarai@suse.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/xtensa')
0 files changed, 0 insertions, 0 deletions