Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1692110rwn; Fri, 9 Sep 2022 02:31:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR6uQYVKBnlVYgfK14m+MNxlfllJpuGs/EAmtETUYeYHq+BCEtuxvw+c+SJtG6rvSciiejeO X-Received: by 2002:a2e:a0cc:0:b0:26b:e763:27d2 with SMTP id f12-20020a2ea0cc000000b0026be76327d2mr314891ljm.62.1662715888713; Fri, 09 Sep 2022 02:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662715888; cv=none; d=google.com; s=arc-20160816; b=Cx6PwjdsymyWz3iEHufB389w4aPESjrtReRE50gOiBbWYsRmvwAZe736elvfEGfXKM C7W+j/7p2U9uttjfCXn64uMvIE/9gIadNJVmTDB7QLBY8SQsF+aCty7rr+DUHdMHAWOl /Ctc/4ZChog9LgalariYIh5aTLX5FU1lSvRybFaxvdygdA3FD7azN1waTL0+PX8hX1ar 4sBiTl1uCyTVwd60q8PsPv0bgGcXxSi08PZOJJGN08jv4bGMY0tjsvGdq1bpGMOlnkM6 v1F65VrKVCrQrTfs+p8mDI27h8ls14xeOk01KAT6KSqD/x3zINUWd6NVVefe3yCqL6Id vdJA== 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; bh=BN9uf8xdaS+loBiDJjdzFGJsztRi5MlWQBfMkdnnpo4=; b=fW712i1ic8IeB+I5T/iGqHupCOa+XiONbd7LZRG9iRbB9NWBcyoRKDCc/cYqGuK/X2 5Nm5YTkffNZl5cTL3X2WhxGfKx6pwWNHFyAZoCvofrLPZjMpJRi2TbsSbPqJ2Pnbl5y2 kjNwz08d4S7gn4wyRmuM3WtmXrOUYjGfi897ctLMU2DNbBMb51WojsjFuhfMDrTp5dAE 1fEcXwljw9JoQ+gCFnQBF6RRZa7skyrcIU1nD2hxbQbAjwJQ98+TpvgAwkNBhsEHS5zC Q0uRzdmbAzNJ6+SaJTa9wNw4a3mfcn4dp8aeZAuPS0unRGQjV3du4/P2+getBjhhlldi ExVQ== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b33-20020a0565120ba100b0048b1c2dd486si21117lfv.160.2022.09.09.02.30.58; Fri, 09 Sep 2022 02:31:28 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231849AbiIIJ2O (ORCPT + 99 others); Fri, 9 Sep 2022 05:28:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231341AbiIIJ05 (ORCPT ); Fri, 9 Sep 2022 05:26:57 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81D2EE293C for ; Fri, 9 Sep 2022 02:25:32 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MP9VC1sbRzlVql; Fri, 9 Sep 2022 17:21:39 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 9 Sep 2022 17:25:30 +0800 From: Miaohe Lin To: CC: , , , , Subject: [PATCH 11/16] mm/page_alloc: make boot_nodestats static Date: Fri, 9 Sep 2022 17:24:46 +0800 Message-ID: <20220909092451.24883-12-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220909092451.24883-1-linmiaohe@huawei.com> References: <20220909092451.24883-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 It's only used in mm/page_alloc.c now. Make it static. Signed-off-by: Miaohe Lin --- 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) { -- 2.23.0