Received: by 10.223.176.46 with SMTP id f43csp3335278wra; Mon, 22 Jan 2018 12:19:26 -0800 (PST) X-Google-Smtp-Source: AH8x227bsZhaTXNz1V1qrSWGDPeFuaLGulNXCn/NSyLUlkrPd+mskGeN/MHTlT4Gy3HVHR1io8fN X-Received: by 10.107.232.4 with SMTP id f4mr93721ioh.171.1516652366268; Mon, 22 Jan 2018 12:19:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516652366; cv=none; d=google.com; s=arc-20160816; b=CTaF2cWWA3YSNelhTq/3MBz5lYTwR27qQ3Aq+UbwzBgApHGyPCb9t2kmeCl11f9mWa 3JklHSdACFXXTJooRqgf5VBNEHXrboMJQGxVQcA3UkDLm+IIfXzFoo05v+u5LMJiklHb pDyzK9XXUvT18cgLjACEN+sPYNXQ2duoyF7gLvjcxuRG3rEo5LhDG2RcqrTm0bNPbTbf f2zkZMdv6DYwbAxX33wARCr/2lmoOIcPgTr0FPZexhtRgvUV3cAtWGaaaTmvtCizRE07 QoeAeuyXofq9fr4pE+S/ZGCew/7UvVlH0zrA3dHmQOyLg6QNyot8Tqo/VbyAn4or7gyD ORhw== 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=YmFX89w71b+40XGdLyHGmct8hL1AfnWWWE7tNAOdCz70w8LzdsqmMetD2Zhs5xQ90t rGoECZPQqeATJUCWlinelFTJWwoB8ybqQ2nSfTlBISVl/SMz62Oq1a5K/ha1RcHDeAdy Cl2DwTFh+JAtM6xyNDs3n1MyxWfzVn6ewkFV7epjb+M2YP8KVf5ZRVNjdqzoHzIwGzzJ x9aCNwt7k+eZShtCqqVIVvwRQXgP5nE6IaeNK2/YpvT5/rh0wqy2J5bMteKHOUzLFhxT hYWNP3b4L0ThwX0mDjkkuMB8TKr+NW8KQHEzPvEy5jIbca1BLqdLYj0ogKl4Zu/POf6w 3OJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=M/XlhX8t; 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 c6si6987273ite.79.2018.01.22.12.19.13; Mon, 22 Jan 2018 12:19:26 -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=M/XlhX8t; 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 S1751937AbeAVUSP (ORCPT + 99 others); Mon, 22 Jan 2018 15:18:15 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:49493 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751866AbeAVUOW (ORCPT ); Mon, 22 Jan 2018 15:14:22 -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=M/XlhX8tGXQfzZmURjJmNoIF7 NE5nQmYdaqvrGsyNjUvCZ3h1zwR62bbSLLQ02Wp39/rpQ7UvkLN4kXpuFjZ7a4OhFUajqbNKWplAN j/N1mxWAMizQjjnxl2UWPy2/+zn561y1ix1KCmO0qz22tex9zYVPRSwqmx2o6fcGE2UxdCfq7yM4Q 3TAP/q/MhZsWPbEZpdokAqMqGa/zROamwR53mWEntB/Av8WFaeAJP/0Q4LtlO5C+EPEVspXR1ERBd rkAnwrfWG75NkZzXPcVaQRA0RQ3YCHCtLHVdTaKEh/E1Fa2RYXa6IvK4RDt6uGYkrYlySNKb6jAXi 7v2IlKhGQ==; 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 1ediU0-0007th-A3; Mon, 22 Jan 2018 20:14:20 +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: Mon, 22 Jan 2018 21:12:36 +0100 Message-Id: <20180122201243.31610-30-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 --- 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