Received: by 10.223.148.5 with SMTP id 5csp6277057wrq; Wed, 17 Jan 2018 11:37:28 -0800 (PST) X-Google-Smtp-Source: ACJfBotrgq901ziAL79n5LbOp8tO1SrJ0Oc3x9gUHpZZPwvVHEvRf1Sp8Geo65QaiayF0VxAAtjw X-Received: by 10.99.139.195 with SMTP id j186mr29736511pge.188.1516217848821; Wed, 17 Jan 2018 11:37:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516217848; cv=none; d=google.com; s=arc-20160816; b=MLPvVIcEeztt1R34an/eywgFJX7Ru/2t85rjFeXdozKJjshjUX7VPdX0d35zB5S5rI 74NtfwGgExIdBF7tA4e8Yfg0zcEbwZyH/M4bXc9xiLMNFS2t9EKvH+e1B7FQNhMbNi/3 p5quc26RnZ06kROT8EOWCNQsUOnO4Ae8BroIsdkwF/Op95qq4aVaZI/JL8UqcFaKAAO8 eCdzyl1y6v8Fn8BN/RzmGqieBKAyVo3EAs7tzAOd+wYx5SMyCwlN1twH/G9nWFOCKi+9 I8QxKBqA8ei15kyDkEsm6G+M8oUPwF706b+NamX5CHr9EuZxm0oQWkg7jZotE3gICW0H 6H4Q== 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=3NazKGwzK7TFBE9jASOq5SZXABAoL5q+xo+o5bbRQSI=; b=1LId1HlC2BJCtgCUcBRZexZRn0kJRrSwE9ahEQCncrdDlDnAifHVO7LpCXVE4pZs3q w0OlitGlaynk0Z+ye6vDejJn+PT6k+8ZKh0NGOjDY4ZPdZ6bs1fe3QOj1SeLI3X52NDW 8Khs0cZCvtguJOiJDSlKK3yVzyEZUIMxqt7Jo6kovGMOQEGgOkdlTxTTBVNFtS77+O2J SbWgGLf/wNDPema9lgBZGdkaAoQg6dfx8qfYhzRhFOxvF+cq3eypszw4jh7P47cVj9lg aoCtAsiPWdTyLV5rnP0DCTpmfzRv8cqz+lALb0lZgy5jdk+rDP9siFiG8UamrW7aqTtc tsxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=rNvPu0Ps; 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 43si4913600plb.498.2018.01.17.11.37.14; Wed, 17 Jan 2018 11:37:28 -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=rNvPu0Ps; 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 S1754123AbeAQTfD (ORCPT + 99 others); Wed, 17 Jan 2018 14:35:03 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:53221 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753866AbeAQT3F (ORCPT ); Wed, 17 Jan 2018 14:29:05 -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=3NazKGwzK7TFBE9jASOq5SZXABAoL5q+xo+o5bbRQSI=; b=rNvPu0PsZnilZvoZ+2jjbJ4c2 1If2LnIAnpQeBtK2cPMmJHvhramDphTpnAXUnknu9LIeH09RoSIuI6xVOQ/isJSMK19IiBGG4FYLE /jSKZMX1q3uurSS5HYVuXKiHZfJfKKAw7vW1cO6rKE8tzqdE2xhZLgl5ZrYPPkdGx82WnSbjDpZF2 hZfwG+GgFjNyHv4TCIGdMFtVpZ6VOsEvZ73g4JXK6tAXuxaCs19zLc/SGIDRQiHF6ChdV40AhjOx3 X23X13HyoY8MsM513nMEnHEnPYlLdmp0pz8mXjtlA4BN12Q8ESTpFq0zeZzTlxu1+oCBdOCua0ZZv D5f2QaOBA==; 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 1ebtOR-0003Ka-1C; Wed, 17 Jan 2018 19:29:03 +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 22/36] net/atm: convert to ->poll_mask Date: Wed, 17 Jan 2018 20:27:28 +0100 Message-Id: <20180117192742.710-23-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/atm/common.c | 11 +++-------- net/atm/common.h | 2 +- net/atm/pvc.c | 2 +- net/atm/svc.c | 2 +- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/net/atm/common.c b/net/atm/common.c index 8f12f1c6fa14..07223ef2a220 100644 --- a/net/atm/common.c +++ b/net/atm/common.c @@ -648,16 +648,11 @@ int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t size) return error; } -__poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait) +__poll_t vcc_poll_mask(struct socket *sock, __poll_t events) { struct sock *sk = sock->sk; - struct atm_vcc *vcc; - __poll_t mask; - - sock_poll_wait(file, sk_sleep(sk), wait); - mask = 0; - - vcc = ATM_SD(sock); + struct atm_vcc *vcc = ATM_SD(sock); + __poll_t mask = 0; /* exceptional events */ if (sk->sk_err) diff --git a/net/atm/common.h b/net/atm/common.h index 5850649068bb..526796ad230f 100644 --- a/net/atm/common.h +++ b/net/atm/common.h @@ -17,7 +17,7 @@ int vcc_connect(struct socket *sock, int itf, short vpi, int vci); int vcc_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int flags); int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len); -__poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait); +__poll_t vcc_poll_mask(struct socket *sock, __poll_t events); int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); int vcc_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); int vcc_setsockopt(struct socket *sock, int level, int optname, diff --git a/net/atm/pvc.c b/net/atm/pvc.c index e1140b3bdcaa..930651c5e77c 100644 --- a/net/atm/pvc.c +++ b/net/atm/pvc.c @@ -114,7 +114,7 @@ static const struct proto_ops pvc_proto_ops = { .socketpair = sock_no_socketpair, .accept = sock_no_accept, .getname = pvc_getname, - .poll = vcc_poll, + .poll_mask = vcc_poll_mask, .ioctl = vcc_ioctl, #ifdef CONFIG_COMPAT .compat_ioctl = vcc_compat_ioctl, diff --git a/net/atm/svc.c b/net/atm/svc.c index c458adcbc177..ad0e6ffb9cfe 100644 --- a/net/atm/svc.c +++ b/net/atm/svc.c @@ -637,7 +637,7 @@ static const struct proto_ops svc_proto_ops = { .socketpair = sock_no_socketpair, .accept = svc_accept, .getname = svc_getname, - .poll = vcc_poll, + .poll_mask = vcc_poll_mask, .ioctl = svc_ioctl, #ifdef CONFIG_COMPAT .compat_ioctl = svc_compat_ioctl, -- 2.14.2