Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp465147rwn; Thu, 15 Sep 2022 01:12:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR7uPBH6/QFwfxvT98Oux0owqfqgxMymzEnUsojAr2lMIqI5g8kccs4iq0VEbPF8sESjbXyH X-Received: by 2002:a05:6402:2201:b0:44f:443e:2a78 with SMTP id cq1-20020a056402220100b0044f443e2a78mr30214427edb.76.1663229523970; Thu, 15 Sep 2022 01:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663229523; cv=none; d=google.com; s=arc-20160816; b=XEDsupVmSyXtXmX8sORBZ8P9upnf1ufHFsjevz1RiMj0RXcTH24cep7dnkfvw0kpAo perTP0UZPo4fpfXzYt7Po6D+B1Apv2Xw0ugJ2jpiJ+p/vidJZh0y9ZVHo9HgvaZQ+zV7 qXmPbl64MHnG9luB1NjTe67B8HInzlButseZFaTKEtaBpmWT+ziPFJoJcOwV/SD7yKKb HzD37kKP70M3HoDreSZJIL7UmbVBqzaQwImyo0iP3kBw+iU7+4XSiW/KIbb+7T9hZA2w AYxTvqm4fb/4JT1qrc7HgKaFRzw8AaXTXewY6s5sb8iq4c65TuIIqeP6mOGHe7IaIZEj XB2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=TUTn+3IKELwrL18ONW8FbXabDVSGLwZ+kOCiDmQzLsw=; b=I3/ZB8/vCKjLvFomaSu0d2e6+omyD6HC69/THFX4F2w/rwtbG5aMlzZmWb8YZOqnSj boFLHbITUkw8Vgs23L5QlHXjHrarxNmNOCCFcwo8D7DDmqI4JmIcBZ8GYu6wZLAMAvz+ K4N6Lu+uV8u/9c3wMHIWi3jA+LlZPm1Meecp5Ed4MU0PCLUHELEjtw6yvNaRQdjMJ+ZJ QExN2SIQ10ZgI6gkvB4aFAoQSyGJdUTbSoi04lw8KXA308yDpg5dQNoSiLIg3XbKcFN6 kW8VktF5BPGSvEYzoHCTbRDMZrunxXmZ7pK+fYnmm9J/fy4MyfEnWbQylycFGO5pnG5z XNWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=eWvoVjda; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o17-20020a170906975100b007709d264a08si2949749ejy.738.2022.09.15.01.11.39; Thu, 15 Sep 2022 01:12:03 -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=@suse.de header.s=susede2_rsa header.b=eWvoVjda; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229907AbiIOHjB (ORCPT + 99 others); Thu, 15 Sep 2022 03:39:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiIOHjA (ORCPT ); Thu, 15 Sep 2022 03:39:00 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5171D89930 for ; Thu, 15 Sep 2022 00:38:59 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 0B9B95CEDA; Thu, 15 Sep 2022 07:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1663227538; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TUTn+3IKELwrL18ONW8FbXabDVSGLwZ+kOCiDmQzLsw=; b=eWvoVjda073CwhGyDL5Dnpq4emHru90vr3ozC3wfVS9Af0gNe2FqigIgzh44wJylHnEyc/ acrcoAE28NUOH1e5H8Hr2ZRdbZOmhbUr8cRc7JQt/zYE5hiJmRjVYA6HDkxG0E45Yniybu ScT9S/DdzSnC4C2kwbujCZOmx8nHz2M= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1663227538; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TUTn+3IKELwrL18ONW8FbXabDVSGLwZ+kOCiDmQzLsw=; b=o0EeACMOD6WBpd4tluWlGsCjwOW8ZBjI7YrT1VpxJoJFooAs9aRhFTg4dHlJwVWLoNtdKz aEdTDQ+6TcqjhYDg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A64AB133A7; Thu, 15 Sep 2022 07:38:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id h17jJZHWImOIZgAAMHmgww (envelope-from ); Thu, 15 Sep 2022 07:38:57 +0000 Date: Thu, 15 Sep 2022 09:38:55 +0200 From: Oscar Salvador To: Miaohe Lin Cc: akpm@linux-foundation.org, david@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/16] mm/page_alloc: make boot_nodestats static Message-ID: References: <20220909092451.24883-1-linmiaohe@huawei.com> <20220909092451.24883-12-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909092451.24883-12-linmiaohe@huawei.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Fri, Sep 09, 2022 at 05:24:46PM +0800, Miaohe Lin wrote: > It's only used in mm/page_alloc.c now. Make it static. > > Signed-off-by: Miaohe Lin Reviewed-by: Oscar Salvador > --- > 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 > -- Oscar Salvador SUSE Labs