Received: by 10.223.176.46 with SMTP id f43csp3336082wra; Mon, 22 Jan 2018 12:20:21 -0800 (PST) X-Google-Smtp-Source: AH8x226yHpZskJRhDxnISgcZJ1PaOwbgJyjvBGIzu3mJ3LrD0B3ZpcOY4RyZ5/AKInD5d2+13M7Y X-Received: by 10.107.131.219 with SMTP id n88mr138913ioi.258.1516652421785; Mon, 22 Jan 2018 12:20:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516652421; cv=none; d=google.com; s=arc-20160816; b=D2YwPHVulahX6mMzugqGK1BzzPPvUxQvnlP31zlLaJkzTTUT6xU/WiOa+mSE+yAGoI LZT6C8M8q+2VEouOMN3rTuh4IO6aHUj9lnVvlkG2Wiz5uvdX2dXg/G85FJ68Be/J6KsS //h3JYU9vZSEneGMJOw8Ctw5K9DhkSe2w71X+zp/HOmlkljWbJRF7pIXq/FYtkfJ1+12 EFxHXXiLeLLgxIirBra8aV+gqYRn+2+7Uh3IZWUkvSqr6DCGLSxxY5V0pPdNLMSIYBDD ybG239elmRX8MlOB2dmiTGrBnOpF8+hpBuvzpo0DBQjptXTmB+Ez53gJMQFPSVthQUGy bzcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Z8g7bDJMpXpsFX4aYzXrO0Tg4Uo2WDnG0DJriHVZB2Y=; b=OuGBrnu1Y6RhqR7nKIQnXxkp9xsuN+fvdZI4QM4lgKOv4qjOBrbI0ZbSjbujTjnmxg eJLf4MqPyUbCO7XvkrXrs3k4I91F1KEbPjdwJHrOheAFtpcLZVkHOhoecMBZVOwhHwYy /PHgfEvRCAz6QTJZWHB41QXaUkIg20jDHoW0pXh3JT9HoVCj72PmFH7CDUwD2klEOLMG rC8JCYMBkkR3hK6Vqn30keN04Jcv0KDfFup+cKrX5JB0ZD9teRsp/TjbgWKS0+uRCdwj tFgS2WaUqJHDJidwP41wD8SBRWl5/6daEn7jmSocKzkrRl0m5GaGN7vP3/IsWot2IYET b1YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=rXN3KZRk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2si6574625iti.35.2018.01.22.12.20.09; Mon, 22 Jan 2018 12:20:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=rXN3KZRk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751844AbeAVUOT (ORCPT + 99 others); Mon, 22 Jan 2018 15:14:19 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:39241 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751125AbeAVUON (ORCPT ); Mon, 22 Jan 2018 15:14:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z8g7bDJMpXpsFX4aYzXrO0Tg4Uo2WDnG0DJriHVZB2Y=; b=rXN3KZRkvxRGtCjCcWBmlhxgx 7PXnpM7T2JT4mSvxi+cbCtmv9igR6BZ4Wh1Wx0ridon89phAMlHFgJOeUfN03nCfG29IpEZwIz64r 61EL/eyAgGsGONHoENv+QCdFvlRakzcGH8Ks64fUQyiIX/fakXmwrP2FdvPiJKderI4MplXFgLi57 4Cvp4hlpfnSdguMQj+lhFKINyxwje+cyPgndXLtAX2ytd2qi8+0vNisz4PQ8KFqDcUjzOejajxLic rEISqmDJgkTWzNS4Blk4Il3z7VPTQYfrn9OZPzBVx/6tg2X7BTRfd5XvE9RZdbdGfyB8A8soXegHT 2xTbvbBUA==; Received: from 178.114.226.247.wireless.dyn.drei.com ([178.114.226.247] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1ediTr-0007kA-0w; Mon, 22 Jan 2018 20:14:11 +0000 From: Christoph Hellwig To: viro@zeniv.linux.org.uk Cc: Avi Kivity , linux-aio@kvack.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 26/36] net/bluetooth: convert to ->poll_mask Date: Mon, 22 Jan 2018 21:12:33 +0100 Message-Id: <20180122201243.31610-27-hch@lst.de> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180122201243.31610-1-hch@lst.de> References: <20180122201243.31610-1-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Christoph Hellwig --- include/net/bluetooth/bluetooth.h | 2 +- net/bluetooth/af_bluetooth.c | 7 ++----- net/bluetooth/l2cap_sock.c | 2 +- net/bluetooth/rfcomm/sock.c | 2 +- net/bluetooth/sco.c | 2 +- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index ec9d6bc65855..53ce8176c313 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h @@ -271,7 +271,7 @@ int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags); int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg, 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_wait_state(struct sock *sk, int state, unsigned long timeo); int bt_sock_wait_ready(struct sock *sk, unsigned long flags); diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c index 671b907ba678..777ef0977a95 100644 --- a/net/bluetooth/af_bluetooth.c +++ b/net/bluetooth/af_bluetooth.c @@ -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) { diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c index 67a8642f57ea..d20b33daa80f 100644 --- a/net/bluetooth/l2cap_sock.c +++ b/net/bluetooth/l2cap_sock.c @@ -1654,7 +1654,7 @@ static const struct proto_ops l2cap_sock_ops = { .getname = l2cap_sock_getname, .sendmsg = l2cap_sock_sendmsg, .recvmsg = l2cap_sock_recvmsg, - .poll = bt_sock_poll, + .poll_mask = bt_sock_poll_mask, .ioctl = bt_sock_ioctl, .mmap = sock_no_mmap, .socketpair = sock_no_socketpair, diff --git a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c index 1aaccf637479..b4dc96481d92 100644 --- a/net/bluetooth/rfcomm/sock.c +++ b/net/bluetooth/rfcomm/sock.c @@ -1049,7 +1049,7 @@ static const struct proto_ops rfcomm_sock_ops = { .setsockopt = rfcomm_sock_setsockopt, .getsockopt = rfcomm_sock_getsockopt, .ioctl = rfcomm_sock_ioctl, - .poll = bt_sock_poll, + .poll_mask = bt_sock_poll_mask, .socketpair = sock_no_socketpair, .mmap = sock_no_mmap }; diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index 08df57665e1f..b2bf5c767b3e 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c @@ -1198,7 +1198,7 @@ static const struct proto_ops sco_sock_ops = { .getname = sco_sock_getname, .sendmsg = sco_sock_sendmsg, .recvmsg = sco_sock_recvmsg, - .poll = bt_sock_poll, + .poll_mask = bt_sock_poll_mask, .ioctl = bt_sock_ioctl, .mmap = sock_no_mmap, .socketpair = sock_no_socketpair, -- 2.14.2