|
@@ -437,16 +437,13 @@ static inline __poll_t bt_accept_poll(struct sock *parent)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-__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)
|
|
|
{
|
|
|
struct sock *sk = sock->sk;
|
|
|
__poll_t mask = 0;
|
|
|
|
|
|
BT_DBG("sock %p, sk %p", sock, sk);
|
|
|
|
|
|
- poll_wait(file, sk_sleep(sk), wait);
|
|
|
-
|
|
|
if (sk->sk_state == BT_LISTEN)
|
|
|
return bt_accept_poll(sk);
|
|
|
|
|
@@ -478,7 +475,7 @@ __poll_t bt_sock_poll(struct file *file, struct socket *sock,
|
|
|
|
|
|
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)
|
|
|
{
|