summaryrefslogtreecommitdiffstats
path: root/net/iucv
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-12-31 16:40:15 +0100
committerChristoph Hellwig <hch@lst.de>2018-05-26 09:16:44 +0200
commitf87be8948185a4f1085aea38bccd0d2ce07f711c (patch)
tree55af5bc4b09a5b5fd7be9482e5f218706ef46c80 /net/iucv
parentnet/phonet: convert to ->poll_mask (diff)
downloadlinux-f87be8948185a4f1085aea38bccd0d2ce07f711c.tar.xz
linux-f87be8948185a4f1085aea38bccd0d2ce07f711c.zip
net/iucv: convert to ->poll_mask
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'net/iucv')
-rw-r--r--net/iucv/af_iucv.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c
index 893a022f9620..68e86257a549 100644
--- a/net/iucv/af_iucv.c
+++ b/net/iucv/af_iucv.c
@@ -1488,14 +1488,11 @@ static inline __poll_t iucv_accept_poll(struct sock *parent)
return 0;
}
-__poll_t iucv_sock_poll(struct file *file, struct socket *sock,
- poll_table *wait)
+static __poll_t iucv_sock_poll_mask(struct socket *sock, __poll_t events)
{
struct sock *sk = sock->sk;
__poll_t mask = 0;
- sock_poll_wait(file, sk_sleep(sk), wait);
-
if (sk->sk_state == IUCV_LISTEN)
return iucv_accept_poll(sk);
@@ -2388,7 +2385,7 @@ static const struct proto_ops iucv_sock_ops = {
.getname = iucv_sock_getname,
.sendmsg = iucv_sock_sendmsg,
.recvmsg = iucv_sock_recvmsg,
- .poll = iucv_sock_poll,
+ .poll_mask = iucv_sock_poll_mask,
.ioctl = sock_no_ioctl,
.mmap = sock_no_mmap,
.socketpair = sock_no_socketpair,