Received: by 10.223.148.5 with SMTP id 5csp6274675wrq; Wed, 17 Jan 2018 11:35:14 -0800 (PST) X-Google-Smtp-Source: ACJfBos84xrW/X2xF5lshPk7Sy4ibGV+n6fCWIgsHrd5O/J3jDieVfqGqw+pT/WZ6TLfF/A/iMnu X-Received: by 10.98.38.199 with SMTP id m190mr38633622pfm.24.1516217714551; Wed, 17 Jan 2018 11:35:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516217714; cv=none; d=google.com; s=arc-20160816; b=a3sY/uZ3GATjOHxFTBwWqgYG1a4/E5FpsdalIPiggmq+mJN0lL6ehbaRBYquNqqthR ZB2ueQZ8gt7GNd4UERBk4K/vsVygfph1AwCa2YU+hERt45yR0kmsheumo1CJg8s61TqR BPdti7Try8HEld8/cCMNU0KKNngKeC1BtpBgzdytx+QDIB8HV5w2NIpMU/PF3qKZ6Mh/ ftyy0SKG4wXkiY/CLT+KJi1ne/9oGEis0YVUW+3Nw1s1RQMmImQSakwRGqMjXmWDBwfb EpHh5FHDvWxYTp02Ol3rTzmEq0PTRjqRMtekyOGQMG6iwMJibLG93WqwnTv2KuRcmoCT EYnQ== 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=xoMMWkiDdwZWFg6L9X1gwa76WhIFdcn8EIFQR5ycFeM=; b=Y4G0Bjti1IqdPkVqwHykUg+FV3ExVupwQ5umUWcsZG9sWLwbrvxZpWdxQwXPsiI4p2 bMernwhI1rB6YTxPKnWfbQQSwaf/leakeniVDdTB1RtiiJz8hxXr+c7TtYctE9mxzwKN 3OkENqXg7hfAjGlGw0MdwcK8REwjal/vk+vknOwPv3vRxd/b5L+7anwfPzMgiADpfVAE /5uzIQUe9Whc+D7I4NLqx8JLmnRkaCl3R38F6PgkM8vD8UvvUPU0I1dnp9yGkGQOKhrC Wc/Aq0PfhHLgDBRAmiXPr5xUjSjanBSSdAtDSLH2hPb7Z4GYX3QrBmvopfZ+paJC2yM9 C7DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Op17mLgM; 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 x11si4426816pln.665.2018.01.17.11.35.00; Wed, 17 Jan 2018 11:35:14 -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=Op17mLgM; 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 S932196AbeAQTcw (ORCPT + 99 others); Wed, 17 Jan 2018 14:32:52 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:35105 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753388AbeAQT33 (ORCPT ); Wed, 17 Jan 2018 14:29:29 -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=xoMMWkiDdwZWFg6L9X1gwa76WhIFdcn8EIFQR5ycFeM=; b=Op17mLgMeF3ekjh3Ei8JEzjMN NNXTlJC0iooUJy4sodxB9/qCdyPFMV3wTL3sR99gTwYRz/gmgKvNID0S/9JdEAYxHcGExhwtWX8Gg 0ltuE1Q+6TxZCmIAJyqy29/doAagN23O1/kUqnzsNrX2wnMum/D5J+K1v1APucfgx+KX4VeFTEEJz 33A9ZOwcR0iP18zWeJLjXGo2V+z35fgYIabKElUVJmkT9P1AMc3epjLRsfUwcIX5Qfe9xbR2TC+As HUk10xeCeoIVWjremUfvKWkWuTeuS7o3FwnzVMqRAcLXxqloeBQaUD8rZmvH6kQIvAjSAs4qhVt0e ZMerfNfMw==; 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 1ebtOp-0003OH-P6; Wed, 17 Jan 2018 19:29:28 +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 29/36] net/phonet: convert to ->poll_mask Date: Wed, 17 Jan 2018 20:27:35 +0100 Message-Id: <20180117192742.710-30-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 --- net/phonet/socket.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/net/phonet/socket.c b/net/phonet/socket.c index 7563b0ac8386..c18c906c025f 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c @@ -341,15 +341,12 @@ static int pn_socket_getname(struct socket *sock, struct sockaddr *addr, return 0; } -static __poll_t pn_socket_poll(struct file *file, struct socket *sock, - poll_table *wait) +static __poll_t pn_socket_poll_mask(struct socket *sock, __poll_t events) { struct sock *sk = sock->sk; struct pep_sock *pn = pep_sk(sk); __poll_t mask = 0; - poll_wait(file, sk_sleep(sk), wait); - if (sk->sk_state == TCP_CLOSE) return POLLERR; if (!skb_queue_empty(&sk->sk_receive_queue)) @@ -474,7 +471,7 @@ const struct proto_ops phonet_stream_ops = { .socketpair = sock_no_socketpair, .accept = pn_socket_accept, .getname = pn_socket_getname, - .poll = pn_socket_poll, + .poll_mask = pn_socket_poll_mask, .ioctl = pn_socket_ioctl, .listen = pn_socket_listen, .shutdown = sock_no_shutdown, -- 2.14.2