Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1139423pxb; Wed, 4 Nov 2020 00:39:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxE6JlP8fSk0VsPTGqcEEgcnzA3SZgf12QJVHe2qz3xmyR9jjQBoDZOMv93GCFktEotzVfg X-Received: by 2002:a17:906:5841:: with SMTP id h1mr23468031ejs.342.1604479186437; Wed, 04 Nov 2020 00:39:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604479186; cv=none; d=google.com; s=arc-20160816; b=nTSTxXDpL4J4h2l8YrgxnMEyb0QwG0KDy2VXZvwGfg/r9LDYwIqaR5L9k3Bx1QMSd5 AF1qXiSj8zU8K/Z5GG3Q0K6UqVyY7P+mtgt3g13Kg2jVFi92SEj4e2ozZLVyY6/r6Qgq 5qu4pdo1d4hxCUbNt36FyIftKu4r3asVj5jCIq+6ohHkkOk1l6a+QXMOSML/qRpUliPt UgQ+SxcJ6Tf2LDK8HV28v6q5OkhkYNVc6P8f2gEYPkbXBXoZnlARcSkzkTCDky2BnP85 LB7IItZD7NXlI4dKQRkLlu75rWR/d19tyo/HCid7GPnkH6s55vu+Bf0PweutCIqa6PNX XqDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ngN0FA3BbaF2skTQb81SDx6NNnA9B+apeh1z2VF7HOU=; b=TvabZkS+LqoUscqPLU0GPSrxJSYV6J6e2u9uNfCkv1qizb8Pex8lIKsSE5PRNBtQC3 LHUz1XFgdPmHEcSW7hLQrGKZQCXIk/q1bwj0yCiVggUeAlFpiVO2GlvtB2UIrblxzAoG yGhuAW7ycA5Rfi+4A95Hb1sHXS9AcGwKop4fXXVXfzh+tWn00S7j7a44LkGc8qZuJP/5 8GIY/Z8JWjcTjg0rq0HEmJmARUFTXCmR3scI52793pOJpNojoTBRir2RwbOkv97tcmuG 1tCSg7F18aBvqV5PMRckin6k+rkottyDz7sEEBmvyulKwtIwBrY7ajSoEbFEZWjOAu22 Vyfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ZNIp7O1F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si849836edj.303.2020.11.04.00.39.23; Wed, 04 Nov 2020 00:39:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ZNIp7O1F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728906AbgKDIhC (ORCPT + 99 others); Wed, 4 Nov 2020 03:37:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728658AbgKDIgm (ORCPT ); Wed, 4 Nov 2020 03:36:42 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0590C0613D3; Wed, 4 Nov 2020 00:36:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=ngN0FA3BbaF2skTQb81SDx6NNnA9B+apeh1z2VF7HOU=; b=ZNIp7O1FFH5oXUqJB4DZ9+A4WO 0mJFCWHS9x83+NHiPMjZCrWjZgkFGU7Mxp5whdALp2uqPqHJT5EQrivT48y29bsE2ims8XQpjI1iG R4/fSG2U4yUnJ2CLW55ygK6gb5mPCA4r1Rh7wUCsl51yEZG+AJb6yTp0fTCMk7xZ4sHrMbCoz36HI B2oGDLWrM5SoxXGwTKI2BPup7heJpwZv1G2Bkx8mW054F9SnVhKgIgfgz9QFa69rh5yPq7153uGlH 98XnIP7pV2vshUuqgmxHDjNPMClHnJyLj78LGOvXTDMvyaQxQ/8BEFpTcGVnjOsHmurKDiLh71xn5 PxdHKkDQ==; Received: from 089144208145.atnat0017.highway.a1.net ([89.144.208.145] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaEHQ-0004kc-0T; Wed, 04 Nov 2020 08:36:36 +0000 From: Christoph Hellwig To: Al Viro Cc: Greg KH , Linus Torvalds , Alexey Dobriyan , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] proc/cpuinfo: switch to ->read_iter Date: Wed, 4 Nov 2020 09:27:35 +0100 Message-Id: <20201104082738.1054792-4-hch@lst.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201104082738.1054792-1-hch@lst.de> References: <20201104082738.1054792-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Implement ->read_iter so that the Android bionic test suite can use this random proc file for its splice test case. Signed-off-by: Christoph Hellwig --- fs/proc/cpuinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/cpuinfo.c b/fs/proc/cpuinfo.c index d0989a443c77df..419760fd77bdd8 100644 --- a/fs/proc/cpuinfo.c +++ b/fs/proc/cpuinfo.c @@ -19,7 +19,7 @@ static int cpuinfo_open(struct inode *inode, struct file *file) static const struct proc_ops cpuinfo_proc_ops = { .proc_flags = PROC_ENTRY_PERMANENT, .proc_open = cpuinfo_open, - .proc_read = seq_read, + .proc_read_iter = seq_read_iter, .proc_lseek = seq_lseek, .proc_release = seq_release, }; -- 2.28.0