Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6340581rwn; Tue, 13 Sep 2022 02:48:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR7pa2v+KVEHhJ8mWCeeZIbIhRVRoKHq1dsTtBg9ep74culBhG1er6jX1hsD0VGqv++uC5VQ X-Received: by 2002:a17:906:4fd0:b0:73d:be5b:291b with SMTP id i16-20020a1709064fd000b0073dbe5b291bmr21567903ejw.157.1663062490816; Tue, 13 Sep 2022 02:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663062490; cv=none; d=google.com; s=arc-20160816; b=mdH74qVtrrn7stQSNLf0Jt8vIfrITF/zOWtH0eNlBNzOD/GycwS6p0UrmeSId1pb8h lZCC1VnBHYB1Iaul57MJztZa1wK0c+y1Xi3Dtwy77F7/ThGRbm8TWPdUqzVVoFYLPr6t MZlgyfhRPtduBZt9nvggekVmrtQRa8nyaZS32gzAlvE1vloWb9QSFC5EQpD0MTq8WA6T 6Fc8vA21JQbL97d/amEY1x+TtM5Vulc3k1uPlsnA2pMdvHPjoFaD3QDA2KPRdTM2KK/F Bh6kAx9UDWkfejEEpZJcU7d2H9aMtSdQepRIXjg8LEPwICOH8kYW43cq1y3SqcUqEW0K /L/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=3gF+BkPniVvGYfTJhSq4+G98tNy67XKONm5nbUfT9Ns=; b=HUsU3gfbXEh/5+8tUyixSI6WNHY2k7lJdS1MQTP6EGDSfpTsQtq3RHdyi41ZGLzPL4 bDTKPTSj2YJJRHt/qfnn8cMU2et8BOSRdkGFBqhTl+Xx6kdaQOtzn5i6FBlV7x8n8Qm/ dO9zS5WOJvjrycO7sXkwI8fdBEBe+STpjTACcnhVi90xfXMawaM3skvEHwwkMyGYPM18 EhyvvYaWuhi40ufXmrDMx/k2oBr1eyObO2bVtbm1zwhnyk+t24+Ww4KRR+RQdSgMyaoX ecuXRPhvTJWi/jU54AQCJp0pqv7UQnS3wzoKUcBxnhP/deIaeSfozULgnFjNEHFozR+J 4Zvg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr13-20020a170907720d00b007417e9a2c71si7833728ejc.352.2022.09.13.02.47.45; Tue, 13 Sep 2022 02:48:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230520AbiIMJAx (ORCPT + 99 others); Tue, 13 Sep 2022 05:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231409AbiIMJAp (ORCPT ); Tue, 13 Sep 2022 05:00:45 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D7A835282E for ; Tue, 13 Sep 2022 02:00:34 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9BDAA1063; Tue, 13 Sep 2022 02:00:40 -0700 (PDT) Received: from [10.162.42.9] (unknown [10.162.42.9]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2E31C3F73B; Tue, 13 Sep 2022 02:00:31 -0700 (PDT) Message-ID: <8b115b79-f21b-645f-f1d2-faa493003b8a@arm.com> Date: Tue, 13 Sep 2022 14:30:29 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 11/16] mm/page_alloc: make boot_nodestats static Content-Language: en-US To: Miaohe Lin , akpm@linux-foundation.org Cc: david@redhat.com, osalvador@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220909092451.24883-1-linmiaohe@huawei.com> <20220909092451.24883-12-linmiaohe@huawei.com> From: Anshuman Khandual In-Reply-To: <20220909092451.24883-12-linmiaohe@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,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 On 9/9/22 14:54, Miaohe Lin wrote: > It's only used in mm/page_alloc.c now. Make it static. > > Signed-off-by: Miaohe Lin Reviewed-by: Anshuman Khandual > --- > mm/internal.h | 2 -- > mm/page_alloc.c | 2 +- > 2 files changed, 1 insertion(+), 3 deletions(-) > > diff --git a/mm/internal.h b/mm/internal.h > index 2424fcde6538..43a441d35baf 100644 > --- a/mm/internal.h > +++ b/mm/internal.h > @@ -864,8 +864,6 @@ int migrate_device_coherent_page(struct page *page); > */ > struct folio *try_grab_folio(struct page *page, int refs, unsigned int flags); > > -DECLARE_PER_CPU(struct per_cpu_nodestat, boot_nodestats); > - > extern bool mirrored_kernelcore; > > static inline bool vma_soft_dirty_enabled(struct vm_area_struct *vma) > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 3417232afa45..7a8a6bb08a15 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -6571,7 +6571,7 @@ static void per_cpu_pages_init(struct per_cpu_pages *pcp, struct per_cpu_zonesta > #define BOOT_PAGESET_BATCH 1 > static DEFINE_PER_CPU(struct per_cpu_pages, boot_pageset); > static DEFINE_PER_CPU(struct per_cpu_zonestat, boot_zonestats); > -DEFINE_PER_CPU(struct per_cpu_nodestat, boot_nodestats); > +static DEFINE_PER_CPU(struct per_cpu_nodestat, boot_nodestats); > > static void __build_all_zonelists(void *data) > {