Skip to content

Commit f87be89

Browse files
author
Christoph Hellwig
committed
net/iucv: convert to ->poll_mask
Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent e7a98d4 commit f87be89

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

‎include/net/iucv/af_iucv.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ struct iucv_sock_list {
153153
atomic_t autobind_name;
154154
};
155155

156-
__poll_t iucv_sock_poll(struct file *file, struct socket *sock,
157-
poll_table *wait);
158156
void iucv_sock_link(struct iucv_sock_list *l, struct sock *s);
159157
void iucv_sock_unlink(struct iucv_sock_list *l, struct sock *s);
160158
void iucv_accept_enqueue(struct sock *parent, struct sock *sk);

‎net/iucv/af_iucv.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,14 +1488,11 @@ static inline __poll_t iucv_accept_poll(struct sock *parent)
14881488
return 0;
14891489
}
14901490

1491-
__poll_t iucv_sock_poll(struct file *file, struct socket *sock,
1492-
poll_table *wait)
1491+
static __poll_t iucv_sock_poll_mask(struct socket *sock, __poll_t events)
14931492
{
14941493
struct sock *sk = sock->sk;
14951494
__poll_t mask = 0;
14961495

1497-
sock_poll_wait(file, sk_sleep(sk), wait);
1498-
14991496
if (sk->sk_state == IUCV_LISTEN)
15001497
return iucv_accept_poll(sk);
15011498

@@ -2388,7 +2385,7 @@ static const struct proto_ops iucv_sock_ops = {
23882385
.getname = iucv_sock_getname,
23892386
.sendmsg = iucv_sock_sendmsg,
23902387
.recvmsg = iucv_sock_recvmsg,
2391-
.poll = iucv_sock_poll,
2388+
.poll_mask = iucv_sock_poll_mask,
23922389
.ioctl = sock_no_ioctl,
23932390
.mmap = sock_no_mmap,
23942391
.socketpair = sock_no_socketpair,

0 commit comments

Comments
 (0)