Received: by 10.223.176.46 with SMTP id f43csp3337965wra; Mon, 22 Jan 2018 12:22:19 -0800 (PST) X-Google-Smtp-Source: AH8x22730eetNCi2dq0k23ibghZjnxCLqDKBbG96JAj/adfIckxv24WByYEOP9oXVqshOysgiR3Y X-Received: by 10.36.51.70 with SMTP id k67mr5273itk.137.1516652539397; Mon, 22 Jan 2018 12:22:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516652539; cv=none; d=google.com; s=arc-20160816; b=SIGAAARJhDHXjIy9byWORspO3ZjfUMOG1E2gjqNeGhEZ9a8NcIlzDIlqGzlscjvgLw YkDDH6QuqrJC1oxY9xfrFgpy5Qb2HQPWT8TSnxxIBroqMfp8t/q86dCgdZuk/29lAhwr 1qN1qjW1NhExm7XBcUqVMAQKNYDBlJn9FETrx+XO/rLGrl4VFFvKGWRYAnlGJHH7it8P yJSv7DTila6Nhv323p3fk82PLyByxqYdp+ZixvCgEpMTjDYfye5dTJ6NtG+AN/QgM61W 1We/J2peDgYfq919+9kWJzHqf1dSJdq7L+mEdnvS9/IPtn7BwhZ1TaDKRrj8nEm9UQQD 2uow== 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=UsCUf3e4KLQNWr2rdN+YnYRwmoseh9qkkl0oxPwp0I/4qHkI1eF6gOnAhK4Mc8SjEt HOPyO+zpOMZPq07UCHLobcV7pK5EfjElfV2X4oiZkn5fhgkvEq4/WAll8w9YHJ7N3MVe jwPtdTm3GNq9V3UeKJV9cNWBrxGEREcKQffAiwiW4V9EYXz90wIzijejutd2/QsE3nAC j8mO/eMuAZdBHteufT3OXQT5aBr1k6IMaRP0NdT1STOHKIShfeCVt9U/QPm/qERtq+Pw umL9suejEL3yvjZoaR/M5Yr0wU6xIxrou+Qlypif4lkDBVtepvEqBlW13gl4G6/1j+fq Mh8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Zl+k8bPm; 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 l199si10667014iol.326.2018.01.22.12.22.05; Mon, 22 Jan 2018 12:22:19 -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=Zl+k8bPm; 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 S1751816AbeAVUVM (ORCPT + 99 others); Mon, 22 Jan 2018 15:21:12 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:37519 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751693AbeAVUOA (ORCPT ); Mon, 22 Jan 2018 15:14:00 -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=Zl+k8bPmOQLlAsc0rshgQjsYc khlG6n3hgNdMeMJT2uCAMDUHhBtQbXcp70QKGvYrkwJ8+vBsN3s5cohlcl/b4tzcQhBvdAfvZSgWT 9nka/9r53qeGJ0gAx0SC2HQ2V/e3ABYvKw+TVVcNea3Q1Vg8HBsfrPcMaPvjrNqK+vKT5NGX5aOlj JZZsQaYJ09pI7q7KgJOkPAurJ7BdFHh3rMH7QdHPPC8AIbxJZOa4TJrq7nTk4K7v3bqg0J1aGNJ/Y xKWOoyIjazulJH70KCczQdEbBzU92Q4wfP/qcAcFh/w3tkhRhQQ8iwvcMG47wmBpQjGMGdtb4WYgn JNW9Guwiw==; 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 1ediTe-0007hR-Ca; Mon, 22 Jan 2018 20:13:58 +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: Mon, 22 Jan 2018 21:12:29 +0100 Message-Id: <20180122201243.31610-23-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/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