Received: by 10.223.148.5 with SMTP id 5csp6274090wrq; Wed, 17 Jan 2018 11:34:39 -0800 (PST) X-Google-Smtp-Source: ACJfBotiXGwe3eIXzLG4nV6E4UPuy6pfWWILGUEbdHvuFyGUzCZMN7vkjEkpqRpOrlpnSuLo++nO X-Received: by 10.99.111.8 with SMTP id k8mr4848024pgc.262.1516217679872; Wed, 17 Jan 2018 11:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516217679; cv=none; d=google.com; s=arc-20160816; b=FORSDKhTPl+SU3VNey9rYUpr+dmeKqhcBgb9ZxD8nbRjn/kyaRuOg/H/xY7bJ0kDzz 5t1UtfoHMjJysYZx9LVolTORURtQOlnZ/6+PkR/Dzhtd2eYQTC7TXm9A0vpEklCfb9Cu Q57g/dBYJ9NBUzPqxRkblr2oJhHw7Pr/FSxIfiZaeUhtEpSZyQ9SEhJcI5XXglWxrT4m TjDnTnds0sunbPBkPvOD9oX60ztQ1WOVujT+I943XNBM0MQsseNQM152Ug1FPdXgHitb jtZUBslV8MOMJDUo+ZRVkA38yctPb+Jq+x3OTcuoT+S0N6dx+26Rq8bGiOSJwnhEtieB 1gYg== 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=BXg7QFyjnxEYMKjdRJWqUbec427J3bxQ1fT3rH+7+gefN9kZiEzEKI8p+DCLPaOg7c b16WHym4CxT6dgFB/luDkcdDX8KRREj6GQnZNoXpCrVule8GES+kxJ8Hi/pPlYuEXQAV tiizBv4MwuKHb75D0qFjUaKS37bayeAR/eEdaoAjpmiKut9IlLKwYzN39mIrZHGg8Zqa +M7I4JTozaP6XzWtlX5r7zAU6HZjldpEMlhl9Sas/wVBrvFTyoMz+z+qi2rCODMOBDqU 6sMrCrAcA7V98Yd6ydZ4lC3FFL/s0/j/vkD9eGViCdOnFEhdVHnPaB+rI460fQWvEayC cEhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tkujAV5P; 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 o17si4420350pgn.280.2018.01.17.11.34.25; Wed, 17 Jan 2018 11:34:39 -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=tkujAV5P; 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 S1754130AbeAQT3X (ORCPT + 99 others); Wed, 17 Jan 2018 14:29:23 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:58079 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754070AbeAQT3T (ORCPT ); Wed, 17 Jan 2018 14:29:19 -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=tkujAV5P2x1N6C/Db9VTDpPUD iC1pIi+NPYmXyorpktzPyJWGKdfxMpF1YSu2XK/TYT/QQ7hpusUaHmAlNJBMKwuk1yI3BOM2uRArV RQwAmONvI0COK2CcuAmL3uqN0JPrWrm2PZGxNUYYedt+qiHUojXcvycpYbtcIKyA3NZdfcvUvQtHO XG0TRoMse4goyi1+ZTTV3HkNxK9/7qa1wv11xf7AbvI4fhuikg0q8bMKFAoMG3aKdn989/ENRYB2Y s6vrBctwzQFyvSxxDDSWixZ4uDlkI5ZJd65voue9JHV1h3p6kE7poIBw4KrP1HMTGr2HTG7okyfb1 AKOtD9Q4w==; Received: from 77.117.185.35.wireless.dyn.drei.com ([77.117.185.35] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1ebtOf-0003MR-KU; Wed, 17 Jan 2018 19:29:18 +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: Wed, 17 Jan 2018 20:27:32 +0100 Message-Id: <20180117192742.710-27-hch@lst.de> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180117192742.710-1-hch@lst.de> References: <20180117192742.710-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