summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-12-31 16:38:53 +0100
committerChristoph Hellwig <hch@lst.de>2018-05-26 09:16:44 +0200
commit9490e40a06aac3a86d4ae3a256beb9a813fdbe65 (patch)
tree4fc6bf87b8227e727468987cf089a47b89e58546
parent17112d80814389c474415bbe8ef57db1160d5d2c (diff)
downloadlinux-9490e40a06aac3a86d4ae3a256beb9a813fdbe65.tar.gz
linux-9490e40a06aac3a86d4ae3a256beb9a813fdbe65.tar.bz2
linux-9490e40a06aac3a86d4ae3a256beb9a813fdbe65.zip
net/caif: convert to ->poll_mask
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--net/caif/caif_socket.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c
index a6fb1b3bcad9..c7991867d622 100644
--- a/net/caif/caif_socket.c
+++ b/net/caif/caif_socket.c
@@ -934,15 +934,11 @@ static int caif_release(struct socket *sock)
}
/* Copied from af_unix.c:unix_poll(), added CAIF tx_flow handling */
-static __poll_t caif_poll(struct file *file,
- struct socket *sock, poll_table *wait)
+static __poll_t caif_poll_mask(struct socket *sock, __poll_t events)
{
struct sock *sk = sock->sk;
- __poll_t mask;
struct caifsock *cf_sk = container_of(sk, struct caifsock, sk);
-
- sock_poll_wait(file, sk_sleep(sk), wait);
- mask = 0;
+ __poll_t mask = 0;
/* exceptional events? */
if (sk->sk_err)
@@ -976,7 +972,7 @@ static const struct proto_ops caif_seqpacket_ops = {
.socketpair = sock_no_socketpair,
.accept = sock_no_accept,
.getname = sock_no_getname,
- .poll = caif_poll,
+ .poll_mask = caif_poll_mask,
.ioctl = sock_no_ioctl,
.listen = sock_no_listen,
.shutdown = sock_no_shutdown,
@@ -997,7 +993,7 @@ static const struct proto_ops caif_stream_ops = {
.socketpair = sock_no_socketpair,
.accept = sock_no_accept,
.getname = sock_no_getname,
- .poll = caif_poll,
+ .poll_mask = caif_poll_mask,
.ioctl = sock_no_ioctl,
.listen = sock_no_listen,
.shutdown = sock_no_shutdown,