From mboxrd@z Thu Jan 1 00:00:00 1970 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 67D97C54EE9 for ; Tue, 13 Sep 2022 09:00:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 009F06B0073; Tue, 13 Sep 2022 05:00:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EFBB88D0001; Tue, 13 Sep 2022 05:00:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DEA456B0075; Tue, 13 Sep 2022 05:00:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id CD3D36B0073 for ; Tue, 13 Sep 2022 05:00:35 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 8B7FEC1051 for ; Tue, 13 Sep 2022 09:00:35 +0000 (UTC) X-FDA: 79906466430.06.9DFEB44 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf26.hostedemail.com (Postfix) with ESMTP id 04C2D1400C9 for ; Tue, 13 Sep 2022 09:00:34 +0000 (UTC) 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 ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663059635; a=rsa-sha256; cv=none; b=vet4gSZnN+k0OsFUuIOlKhFqoULsl6SvU2p01GXjNSf9VHEP/EB+4NqDqLI7Lonq9ukjpu roB2SPd/QYZFV6GdATstA5wM6NYtSQdAeeWNzReQVhxL7YvFzscJRwWayb4AHwydNVDTA7 Ri0p/Z2wk8PwLP2c34mtmCfkvAwzSnY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663059635; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3gF+BkPniVvGYfTJhSq4+G98tNy67XKONm5nbUfT9Ns=; b=pi4V9RLdNQvncxD/PkOdrN5TIBb5Qy3S/4yWcKxDBylsPWUL4S4lypgiGMVT26FyKJclF2 dMh7idu3G4jNjAzM8XPQMdeStETchglRlmOWDlYFsvR35UxpGVYa5txhsmbRV/MBEAYzuk Hs8EQF/gPWmcOm2Bgf9LZhas0OAoRtY= X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 04C2D1400C9 X-Rspam-User: Authentication-Results: imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com; dmarc=pass (policy=none) header.from=arm.com X-Stat-Signature: dndcespe4tfbunedku9wnot3no9p9abp X-HE-Tag: 1663059634-900855 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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) > {