Commit 17112d80 authored by Christoph Hellwig's avatar Christoph Hellwig

net/bluetooth: convert to ->poll_mask

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 568ea88e
...@@ -271,7 +271,7 @@ int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, ...@@ -271,7 +271,7 @@ int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
int flags); int flags);
int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg, int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,
size_t len, int flags); size_t len, int flags);
__poll_t bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait); __poll_t bt_sock_poll_mask(struct socket *sock, __poll_t events);
int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo); int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo);
int bt_sock_wait_ready(struct sock *sk, unsigned long flags); int bt_sock_wait_ready(struct sock *sk, unsigned long flags);
......
...@@ -437,16 +437,13 @@ static inline __poll_t bt_accept_poll(struct sock *parent) ...@@ -437,16 +437,13 @@ static inline __poll_t bt_accept_poll(struct sock *parent)
return 0; return 0;
} }
__poll_t bt_sock_poll(struct file *file, struct socket *sock, __poll_t bt_sock_poll_mask(struct socket *sock, __poll_t events)
poll_table *wait)
{ {
struct sock *sk = sock->sk; struct sock *sk = sock->sk;
__poll_t mask = 0; __poll_t mask = 0;
BT_DBG("sock %p, sk %p", sock, sk); BT_DBG("sock %p, sk %p", sock, sk);
poll_wait(file, sk_sleep(sk), wait);
if (sk->sk_state == BT_LISTEN) if (sk->sk_state == BT_LISTEN)
return bt_accept_poll(sk); return bt_accept_poll(sk);
...@@ -478,7 +475,7 @@ __poll_t bt_sock_poll(struct file *file, struct socket *sock, ...@@ -478,7 +475,7 @@ __poll_t bt_sock_poll(struct file *file, struct socket *sock,
return mask; return mask;
} }
EXPORT_SYMBOL(bt_sock_poll); EXPORT_SYMBOL(bt_sock_poll_mask);
int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
{ {
......
...@@ -1653,7 +1653,7 @@ static const struct proto_ops l2cap_sock_ops = { ...@@ -1653,7 +1653,7 @@ static const struct proto_ops l2cap_sock_ops = {
.getname = l2cap_sock_getname, .getname = l2cap_sock_getname,
.sendmsg = l2cap_sock_sendmsg, .sendmsg = l2cap_sock_sendmsg,
.recvmsg = l2cap_sock_recvmsg, .recvmsg = l2cap_sock_recvmsg,
.poll = bt_sock_poll, .poll_mask = bt_sock_poll_mask,
.ioctl = bt_sock_ioctl, .ioctl = bt_sock_ioctl,
.mmap = sock_no_mmap, .mmap = sock_no_mmap,
.socketpair = sock_no_socketpair, .socketpair = sock_no_socketpair,
......
...@@ -1049,7 +1049,7 @@ static const struct proto_ops rfcomm_sock_ops = { ...@@ -1049,7 +1049,7 @@ static const struct proto_ops rfcomm_sock_ops = {
.setsockopt = rfcomm_sock_setsockopt, .setsockopt = rfcomm_sock_setsockopt,
.getsockopt = rfcomm_sock_getsockopt, .getsockopt = rfcomm_sock_getsockopt,
.ioctl = rfcomm_sock_ioctl, .ioctl = rfcomm_sock_ioctl,
.poll = bt_sock_poll, .poll_mask = bt_sock_poll_mask,
.socketpair = sock_no_socketpair, .socketpair = sock_no_socketpair,
.mmap = sock_no_mmap .mmap = sock_no_mmap
}; };
......
...@@ -1197,7 +1197,7 @@ static const struct proto_ops sco_sock_ops = { ...@@ -1197,7 +1197,7 @@ static const struct proto_ops sco_sock_ops = {
.getname = sco_sock_getname, .getname = sco_sock_getname,
.sendmsg = sco_sock_sendmsg, .sendmsg = sco_sock_sendmsg,
.recvmsg = sco_sock_recvmsg, .recvmsg = sco_sock_recvmsg,
.poll = bt_sock_poll, .poll_mask = bt_sock_poll_mask,
.ioctl = bt_sock_ioctl, .ioctl = bt_sock_ioctl,
.mmap = sock_no_mmap, .mmap = sock_no_mmap,
.socketpair = sock_no_socketpair, .socketpair = sock_no_socketpair,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment