diff options
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 857dca47bf80..b96b94cee760 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -1448,8 +1448,7 @@ static void tun_sock_write_space(struct sock *sk) | |||
1448 | kill_fasync(&tfile->fasync, SIGIO, POLL_OUT); | 1448 | kill_fasync(&tfile->fasync, SIGIO, POLL_OUT); |
1449 | } | 1449 | } |
1450 | 1450 | ||
1451 | static int tun_sendmsg(struct kiocb *iocb, struct socket *sock, | 1451 | static int tun_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len) |
1452 | struct msghdr *m, size_t total_len) | ||
1453 | { | 1452 | { |
1454 | int ret; | 1453 | int ret; |
1455 | struct tun_file *tfile = container_of(sock, struct tun_file, socket); | 1454 | struct tun_file *tfile = container_of(sock, struct tun_file, socket); |
@@ -1464,8 +1463,7 @@ static int tun_sendmsg(struct kiocb *iocb, struct socket *sock, | |||
1464 | return ret; | 1463 | return ret; |
1465 | } | 1464 | } |
1466 | 1465 | ||
1467 | static int tun_recvmsg(struct kiocb *iocb, struct socket *sock, | 1466 | static int tun_recvmsg(struct socket *sock, struct msghdr *m, size_t total_len, |
1468 | struct msghdr *m, size_t total_len, | ||
1469 | int flags) | 1467 | int flags) |
1470 | { | 1468 | { |
1471 | struct tun_file *tfile = container_of(sock, struct tun_file, socket); | 1469 | struct tun_file *tfile = container_of(sock, struct tun_file, socket); |