diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-01 18:46:30 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-01-24 19:13:45 -0500 |
commit | 5c59e564e46dcbab2ee7a4e9e0243562a39679a2 (patch) | |
tree | 1c802ae92bdfca234d5d106f3a6df62da5977f91 /net | |
parent | 44c02a2c3dc55835e9f0d8ef73966406cd805001 (diff) | |
download | linux-5c59e564e46dcbab2ee7a4e9e0243562a39679a2.tar.gz linux-5c59e564e46dcbab2ee7a4e9e0243562a39679a2.tar.bz2 linux-5c59e564e46dcbab2ee7a4e9e0243562a39679a2.zip |
kill kernel_sock_ioctl()
no users since 2014
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net')
-rw-r--r-- | net/socket.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/net/socket.c b/net/socket.c index 45d51555ce47..11cc2cd0f37b 100644 --- a/net/socket.c +++ b/net/socket.c @@ -3245,19 +3245,6 @@ int kernel_sendpage_locked(struct sock *sk, struct page *page, int offset, } EXPORT_SYMBOL(kernel_sendpage_locked); -int kernel_sock_ioctl(struct socket *sock, int cmd, unsigned long arg) -{ - mm_segment_t oldfs = get_fs(); - int err; - - set_fs(KERNEL_DS); - err = sock->ops->ioctl(sock, cmd, arg); - set_fs(oldfs); - - return err; -} -EXPORT_SYMBOL(kernel_sock_ioctl); - int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how) { return sock->ops->shutdown(sock, how); |