aboutsummaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-07-01 18:46:30 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2018-01-24 19:13:45 -0500
commit5c59e564e46dcbab2ee7a4e9e0243562a39679a2 (patch)
tree1c802ae92bdfca234d5d106f3a6df62da5977f91 /net/socket.c
parent44c02a2c3dc55835e9f0d8ef73966406cd805001 (diff)
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/socket.c')
-rw-r--r--net/socket.c13
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,
3245} 3245}
3246EXPORT_SYMBOL(kernel_sendpage_locked); 3246EXPORT_SYMBOL(kernel_sendpage_locked);
3247 3247
3248int kernel_sock_ioctl(struct socket *sock, int cmd, unsigned long arg)
3249{
3250 mm_segment_t oldfs = get_fs();
3251 int err;
3252
3253 set_fs(KERNEL_DS);
3254 err = sock->ops->ioctl(sock, cmd, arg);
3255 set_fs(oldfs);
3256
3257 return err;
3258}
3259EXPORT_SYMBOL(kernel_sock_ioctl);
3260
3261int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how) 3248int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how)
3262{ 3249{
3263 return sock->ops->shutdown(sock, how); 3250 return sock->ops->shutdown(sock, how);