From patchwork Wed May 17 13:10:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 95237 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1126160vqo; Wed, 17 May 2023 06:14:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Xjx8ndmvi9qFF1gzUra4KcxtRzi1j5ieznNZIzW1Rb9eLE4tGt0yDNaIQB2XJBNys8ht+ X-Received: by 2002:a05:6a00:1952:b0:64b:256:204c with SMTP id s18-20020a056a00195200b0064b0256204cmr883894pfk.20.1684329240358; Wed, 17 May 2023 06:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684329240; cv=none; d=google.com; s=arc-20160816; b=IgQQvRJfGLF2c83r07E+Fsh/GRVfRwBwMNe9NDbCuOtCoFMauPg7WPT8ry+Aob4HuJ GZMVvEhnXj2aDQz5TT7v75haL/CAa28GureITk2wHiwASOXFGwOHf6FKmTsZkJEix2ht P6LQuOvFspaX6na2Vnxo6QBMOXJp3MzY0SytCM8JbMsON63ca28UVLjmqir5lsh1QTLC ixIkze0F9B1XO3tyI5f97hOlLe1BrYtLiI9n/E+XiKzdErWnDcFNGX2/rE/8Hd1bu9+c 46mgQBCBH02w+5K1I1e0pBwyTeeQvFC7Y3C5ONaluwdDNj7e4n9qOMP/SkQU6n8W9qPY 21RA== 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=ObHkjYuDDGZrxBzUEU5nWl/ziVV5tY5rqiTA62zFkJ8=; b=cLr1Lkp0k7WGCsx+sN37JPrj7eCfZGZvwkCqmgYPJIX23mIljNfwaK7Oc8Uak2RoAr 6rugz2ZVPA00RnYZio7vpky7kJv3zB/JCAR870EYPmh13xvKGncN51ZiosgneeZPtR2Z wjUOjiRWUsB2Memw7Qp1bgW6O+3m2NpKAuo0JH37TmYNdRV+i1IVZ0K7OBSXlDy7H7Xd SUqZRH/Hv2DpgIqPs5wxZR9JGtunVUfVI8DtkjLePA55g7W2GAJ0dHO8z462Yri5cOGV BPzpRuEZKzKcBRE7qG8HZPc1FPS2vKVI2cAFkzyOqLeB5N7mHzGMS37BnkX16ojVpZE+ WkDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EYIGhjsk; 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 f64-20020a625143000000b0063b89234a5asi22020128pfb.371.2023.05.17.06.13.46; Wed, 17 May 2023 06:14:00 -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=EYIGhjsk; 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 S231935AbjEQNMO (ORCPT + 99 others); Wed, 17 May 2023 09:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231912AbjEQNMH (ORCPT ); Wed, 17 May 2023 09:12:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D91DF3A8D; Wed, 17 May 2023 06:12:02 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 48D9563EF0; Wed, 17 May 2023 13:12:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E14AC433A1; Wed, 17 May 2023 13:11:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684329121; bh=ZEuLmqNfBu4LwIeDkvzu7YMjKyFq0rMolN8SHAt1hRo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EYIGhjskS/xv5B1p/ij9PND0/tmwkdiUYlvegDshPwFUbpxuTFyigABp4MTrw0TuQ P78r6F9mokfxX2GOn5NNxJ7Y8gpKeQ2JIJPOlwKyXwrocJSsJPMgZ5so90ndZnWLIH aGDrxnHeZ7PSsfX8ujY8+iBUJh64lKQ8tuj1W6/9ZjHk9UY72TP6XbnI7D4PlCH7We aaUModTzCCSrDAZVc+++qyvzPpkjq5ahpjt1CIVik3sjBmumD9LM7YmBA788qeLjcM 2OMcn8FcIbxKuRPscWnHIx9nPzp5O441qpjTVop2Tg6G0Jcnayutfz950N7PCb338P sb4vFIfH5scjQ== From: Arnd Bergmann To: Andrew Morton Cc: linux-mm@kvack.org, Arnd Bergmann , Russell King , Catalin Marinas , Will Deacon , Michal Simek , Thomas Bogendoerfer , Helge Deller , Michael Ellerman , Palmer Dabbelt , Heiko Carstens , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "Rafael J. Wysocki" , Paul Moore , Eric Paris , Dennis Zhou , Tejun Heo , Christoph Lameter , Pavel Machek , Peter Zijlstra , Waiman Long , Boqun Feng , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, audit@vger.kernel.org, linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com Subject: [PATCH 03/14] mm: sparse: mark populate_section_memmap() static Date: Wed, 17 May 2023 15:10:51 +0200 Message-Id: <20230517131102.934196-4-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230517131102.934196-1-arnd@kernel.org> References: <20230517131102.934196-1-arnd@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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?1766147217325575645?= X-GMAIL-MSGID: =?utf-8?q?1766147217325575645?= From: Arnd Bergmann There are two definitions of this function, but the second one lacks the 'static' annotation: mm/sparse.c:704:25: error: no previous prototype for 'populate_section_memmap' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- mm/sparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/sparse.c b/mm/sparse.c index c2afdb26039e..b8d5d58fe240 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@ -701,7 +701,7 @@ static int fill_subsection_map(unsigned long pfn, unsigned long nr_pages) return rc; } #else -struct page * __meminit populate_section_memmap(unsigned long pfn, +static struct page * __meminit populate_section_memmap(unsigned long pfn, unsigned long nr_pages, int nid, struct vmem_altmap *altmap, struct dev_pagemap *pgmap) {