From patchwork Thu Mar 23 11:58:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 74044 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2874626wrt; Thu, 23 Mar 2023 05:16:19 -0700 (PDT) X-Google-Smtp-Source: AK7set8ZyBY7KzunLh9dIrt3Ks8yOuFrRGTpJfcb2qPOYHxd1PZZJRV2uDrsd22qKuSs8bTZ8gTO X-Received: by 2002:a05:6402:4cf:b0:500:5627:a20a with SMTP id n15-20020a05640204cf00b005005627a20amr9573465edw.25.1679573779387; Thu, 23 Mar 2023 05:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679573779; cv=none; d=google.com; s=arc-20160816; b=DdtWM5AH/YIDy3ri1bETdntOqtyWnmAuYr40+muGcgA8Wk43x0ZqVkcDknk1/ZqMiA Kz2ubB/MboP1P/365jaAY/s5J8QBwwcm85JDDFzTQlcgn6Tm5UNGCGGkYrVJRH8yitLw olS2bjUbfQbOnpOJsyz0WksWZYNjh8vcf3vwLBn2amhWYLrAhmJ9haWTCNeBznj4t/oV bx6Fdvt99GPZP3Juuc/hHKWnAzvml1yasTcQRVisnUA41eRuIf8Fs8xEcEDM1uz7I+r2 Fh2AuaQ0tikv0UqVbDtIdrx2DyljGlPeuaNupjcKsWIJMrl0hCBhvp6fVUCOg90U6f9w FasA== 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=RAa6QYfhSECI92djUs3Jnn+lkRSHMYnA7QB58mfyffk=; b=u/2uRGNTCS7c1SJtTj7z4Z+iDLPisPYPO8UzH1MLaPZ3CDKrg9cDge1HwKligiyQKL BEpVe/6LCj3BFpgY7vEyt6RlyXiqWRoyBLPKN4qO0wt6CuC/RWLn4AQ7bxYzEWRkoQp/ /XjlSTiebdDstSCl4e0na9T7Up6a8QM2/3jZgffzG6A1YTRZOuDh3nJ+XnnRythCQglf /jhCJy69kh3qp6JqlUfLyXJakGjrKb/J1lHJnzoxiL9iW2XUC+Tf+OM864aetMz4VJHd ZUL88A7olC5xp883zbHYonhhbstnvnmssFCVKVBsnkHWBfMfHjjLKi8o1GRikxtQN6c+ RRkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UdLQR8S7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wf5-20020a170907d68500b009330d1437a1si14212963ejc.701.2023.03.23.05.15.47; Thu, 23 Mar 2023 05:16:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UdLQR8S7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230109AbjCWMCJ (ORCPT + 99 others); Thu, 23 Mar 2023 08:02:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231736AbjCWMBf (ORCPT ); Thu, 23 Mar 2023 08:01:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2700D1FE9 for ; Thu, 23 Mar 2023 04:59:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 61199B81CED for ; Thu, 23 Mar 2023 11:59:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E96F1C433D2; Thu, 23 Mar 2023 11:59:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679572790; bh=hhPbL79oPMdtDe7maqPTdafjDuPMITrYj4jgPoVH1Q4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UdLQR8S7HwWTgjH50FDeeSUqXWGo4+fmBddMMbOGV8fam6vbmTsBm1LzANxUs1fkm TPBv/1tebFkcRlg08L0fIioLsQbG99cRIqtzhoFxLQ19qEmItnHCo/1T/Mx/Bbva83 iZl063I623DZhNP4k6nGPyUFFzg7MI/6tngGxcxH+RbQQuyx8b91Kdj9L9xhqvdTjq VyHP8zdPBWUWM5dRHA90ZVSmE7ssEMXP5WTICb8myhmdzKrCofE+WHVjFP46n5zryQ s8yiXAqPZvgJO8w+Rf++/GOnAKcBn9kLpYHLi5IQQKGKZ8ceGkA/HYqvKinawYfrtT uqmU9SAVV4bxA== From: Arnd Bergmann To: Andrew Morton , Lorenzo Stoakes Cc: Arnd Bergmann , Uladzislau Rezki , Christoph Hellwig , Baoquan He , David Hildenbrand , Andrey Konovalov , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] mm: vmalloc: mark zero_iter() static Date: Thu, 23 Mar 2023 12:58:36 +0100 Message-Id: <20230323115903.1483668-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230323115903.1483668-1-arnd@kernel.org> References: <20230323115903.1483668-1-arnd@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761160755297649660?= X-GMAIL-MSGID: =?utf-8?q?1761160755297649660?= From: Arnd Bergmann The zero_iter() function was put into the global namespace, apparently by accident: mm/vmalloc.c:3448:8: error: no previous prototype for function 'zero_iter' [-Werror,-Wmissing-prototypes] size_t zero_iter(struct iov_iter *iter, size_t count) ^ mm/vmalloc.c:3448:1: note: declare 'static' if the function is not intended to be used outside of this translation unit size_t zero_iter(struct iov_iter *iter, size_t count) ^ Fixes: d9cab54f7737 ("mm: vmalloc: convert vread() to vread_iter()") Signed-off-by: Arnd Bergmann --- mm/vmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index fb216495fe5a..55f5d6fc8629 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -3445,7 +3445,7 @@ EXPORT_SYMBOL(vmalloc_32_user); * * Returns the number of zeroed bytes. */ -size_t zero_iter(struct iov_iter *iter, size_t count) +static size_t zero_iter(struct iov_iter *iter, size_t count) { size_t remains = count;