diff options
author | Christoph Hellwig <hch@lst.de> | 2005-11-09 00:35:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:00 -0500 |
commit | 7a81e316866be8053b18fe1dffc663f1ff19bfc3 (patch) | |
tree | 5d4920691227194b6f7e17a9f3342d72473cc036 | |
parent | 49705b7743fd8f5632a95ec4c6547d169d27ac1f (diff) |
[PATCH] re-add TIOCSTART and TIOCSTOP compat_ioctl handlers
We don't implement these ioctls, but some architectures define them in the
headers. Bash picks them up and issues them frequently. Add compat_ioctl
handlers to silence warnings about unhandled copat ioctls.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | fs/compat_ioctl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 4909754ea84a..71c9d45c0624 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
@@ -3051,6 +3051,16 @@ HANDLE_IOCTL(TIOCSSERIAL, serial_struct_ioctl) | |||
3051 | COMPATIBLE_IOCTL(TIOCGLTC) | 3051 | COMPATIBLE_IOCTL(TIOCGLTC) |
3052 | COMPATIBLE_IOCTL(TIOCSLTC) | 3052 | COMPATIBLE_IOCTL(TIOCSLTC) |
3053 | #endif | 3053 | #endif |
3054 | #ifdef TIOCSTART | ||
3055 | /* | ||
3056 | * For these two we have defintions in ioctls.h and/or termios.h on | ||
3057 | * some architectures but no actual implemention. Some applications | ||
3058 | * like bash call them if they are defined in the headers, so we provide | ||
3059 | * entries here to avoid syslog message spew. | ||
3060 | */ | ||
3061 | COMPATIBLE_IOCTL(TIOCSTART) | ||
3062 | COMPATIBLE_IOCTL(TIOCSTOP) | ||
3063 | #endif | ||
3054 | /* Usbdevfs */ | 3064 | /* Usbdevfs */ |
3055 | HANDLE_IOCTL(USBDEVFS_CONTROL32, do_usbdevfs_control) | 3065 | HANDLE_IOCTL(USBDEVFS_CONTROL32, do_usbdevfs_control) |
3056 | HANDLE_IOCTL(USBDEVFS_BULK32, do_usbdevfs_bulk) | 3066 | HANDLE_IOCTL(USBDEVFS_BULK32, do_usbdevfs_bulk) |