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: 13185585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 934CEC6FD1D for ; Thu, 23 Mar 2023 11:59:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 06FDF6B007B; Thu, 23 Mar 2023 07:59:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 020826B007D; Thu, 23 Mar 2023 07:59:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E04316B007E; Thu, 23 Mar 2023 07:59:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id D05066B007B for ; Thu, 23 Mar 2023 07:59:54 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id A38A0140642 for ; Thu, 23 Mar 2023 11:59:54 +0000 (UTC) X-FDA: 80600019108.20.AF20BD5 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf08.hostedemail.com (Postfix) with ESMTP id D2D7116000D for ; Thu, 23 Mar 2023 11:59:52 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=UdLQR8S7; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf08.hostedemail.com: domain of arnd@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679572793; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=RAa6QYfhSECI92djUs3Jnn+lkRSHMYnA7QB58mfyffk=; b=oWacTqP4y7F3rlnPfy7wqUvcJwxz5R/ZZyX24Rgc7HbejrcR/U/WVxJ28hOIX9gj1X89OD UU3hyw7dsWxgSQZsx/56ZWhqVgGBFGu83+k9ktS8LHYyQWZfbVcBmKSmCZdx/bOJAQv5hC NUGnlLOaCBnCaxDruTH0K/ykCvd2rAQ= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=UdLQR8S7; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf08.hostedemail.com: domain of arnd@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679572793; a=rsa-sha256; cv=none; b=PGmgmNV8MOYUD7d6AaqGR7CzQcF+uP7m2RuAq/uCuBn/CM4uxObSOvcxqjovkWSsb67SJm LAa2htdW6Q1PQZ4GP7wnHjkXs+1ZMdfnvNlwTl0O8LicDEkZ5GSv4mz3LCr+VSW4p+T6H6 HP0lI1m9ePhugHEdAqVJs5X9mDAa53I= 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 65DEEB820D7; 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-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: D2D7116000D X-Stat-Signature: j57c5pmokchbzcuhje6a831k7bir375u X-HE-Tag: 1679572792-763648 X-HE-Meta: U2FsdGVkX1+hFQ15xEtLVLhtZsneDjSRA2aspK8+XHiX4KWCeJ7tm0BZ3iwW2bXfxfFVoZ+zNA6py40HPihllnPyZQWiMBPI7jFpy4lOTYUq3aTOKeTXij2g3jpCTVAA53BJj9w6kMjMCZF21edR/LB22JnBeFWyChGQBOzAZrcX1ldON80PhDISD/22CNd/ZL63G4MskRB73JMlUUpnOJnp6eSTnjwPQTiV8zWUeJwnjVeykDROoK4gqxpubsKbC1qbD7Qy4/coNedHpZwywxrd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-Loop: owner-majordomo@kvack.org List-ID: 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;