From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from flow5-smtp.messagingengine.com (flow5-smtp.messagingengine.com [103.168.172.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6481A13D8A0; Tue, 16 Jul 2024 13:08:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721135307; cv=none; b=KPc72ed2HzBkKS5JfPd932ZaolXzIzlBJlQlsg7/bX3I5LKyp5hTdlwbmETFxBvlo4ZX4AMmebh4AgfPRGioGLMimevE5KzwoGrVpACnRPxEkjLnAr0HPmjiCKpcr94+83dGy8wbR5oYo3pF5UyBtI6J9it2dcwWcAgZ0lhC3NI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721135307; c=relaxed/simple; bh=HDznOx5hbb1IvT1ZrtlGW6ohzdUf5QDocyHD5/dDtnU=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=lHk+dm3WoyYYFjMWEFH4kRsh6Avzlfw2VuP/bdEO3YDto2E/CZyXDu2Bq6UJLeiyRLiNBD+Z/gwFkDKuY3lyo2S59klexEVOuXCOSiCNejVK8mV/5ZFdRoydNC/ovRlvSbSKRNAa6y9G9Q3jutzc6EHBCwT6sH/ExbWkLRqdWPA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=LLolVvbG; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=bG2YZz3j; arc=none smtp.client-ip=103.168.172.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="LLolVvbG"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="bG2YZz3j" Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailflow.nyi.internal (Postfix) with ESMTP id 64DA4201196; Tue, 16 Jul 2024 09:08:24 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute3.internal (MEProxy); Tue, 16 Jul 2024 09:08:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1721135304; x=1721142504; bh=zt6qUa/rBAPGttY012K2IM8tuPIkZZ+7qikKmJ20XiQ=; b= LLolVvbGAnfV4iXPMW7seBnQ9ucngH1f2xp7EVD2uugxg3VEjVHJlV3vHpdUCRlV 2Crod5dg4xilCIfTvsTZ3G0tnDSqxiqhIDMAeN6+HEFwoCEsiOOPq8SsQLa0sr/G xoG+i1vuZTOZ/7p3S2bp7uGbvMcxmbyusFaykv0mTCQZsmkThpkr9v2U6Zr+crZZ kmtszuZc2FnPtn2KugCODrgWHPthZIH5B7IwAoGfLtZRAwh7tq+DE3K11XSzxYk8 5cprDH9mBZKnOwemRYCHcIIWN9/QaaLvzr+ZwZv/QxnXkafuN22zU1FFkVBylKx6 A+QxZ0MIkK2YbgL8XuvmWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1721135304; x= 1721142504; bh=zt6qUa/rBAPGttY012K2IM8tuPIkZZ+7qikKmJ20XiQ=; b=b G2YZz3jWm7iHL3gXNLVUTtNcfzTahLzLjR4iyuU0CNuyM89NLOf9oZyD2C3hYAIK AfDf20U8qC7CTOkBsWjWvYOHnqiWY3TigtPu5Yde99vlDGBfkJrkykgrj6MZxNRd OF0b0J9NpdNZ0L4sxgIiiEOEJlRsdc3+T+nlOeUW0yb0Z8JhW7I8RkOQgEq1DoaG WOeM5WdMLmGD4/DXwHMeXVIh/TuGiCjq62Cmau3SRwhwxyMut9KqZw8PI0t559X3 drs3XIktjiBwP0mYVx52WH2pcoTQ4U95QNutDBRpZXbx67KkVSdfOjgua4ISKpVl lzZmmp3ndbV1KXYw8/6vw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrgeeggdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedflfhi rgiguhhnucgjrghnghdfuceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh eqnecuggftrfgrthhtvghrnhepudefgeeftedugeehffdtheefgfevffelfefghefhjeeu geevtefhudduvdeihefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7559536A0075; Tue, 16 Jul 2024 09:08:21 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-568-g843fbadbe-fm-20240701.003-g843fbadb Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <2a2bb8b6-09ca-40c3-b6a9-d8fac7dd5208@app.fastmail.com> In-Reply-To: <20240716111346.3676969-4-rppt@kernel.org> References: <20240716111346.3676969-1-rppt@kernel.org> <20240716111346.3676969-4-rppt@kernel.org> Date: Tue, 16 Jul 2024 21:07:59 +0800 From: "Jiaxun Yang" To: "Mike Rapoport" , linux-kernel@vger.kernel.org Cc: "Alexander Gordeev" , "Andreas Larsson" , "Andrew Morton" , "Arnd Bergmann" , "Borislav Petkov" , "Catalin Marinas" , "Christophe Leroy" , "Dan Williams" , "Dave Hansen" , "David Hildenbrand" , "David S . Miller" , "Greg Kroah-Hartman" , "Heiko Carstens" , "Huacai Chen" , "Ingo Molnar" , "John Paul Adrian Glaubitz" , "Jonathan Cameron" , "Michael Ellerman" , "Palmer Dabbelt" , "Rafael J. Wysocki" , "Rob Herring" , "Thomas Bogendoerfer" , "Thomas Gleixner" , "Vasily Gorbik" , "Will Deacon" , linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, "linux-mips@vger.kernel.org" , linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-acpi@vger.kernel.org, linux-cxl@vger.kernel.org, nvdimm@lists.linux.dev, devicetree@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org Subject: Re: [PATCH 03/17] MIPS: loongson64: rename __node_data to node_data Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable =E5=9C=A82024=E5=B9=B47=E6=9C=8816=E6=97=A5=E4=B8=83=E6=9C=88 =E4=B8=8B=E5= =8D=887:13=EF=BC=8CMike Rapoport=E5=86=99=E9=81=93=EF=BC=9A > From: "Mike Rapoport (Microsoft)" > > Make definition of node_data match other architectures. > This will allow pulling declaration of node_data to the generic mm cod= e in > the following commit. > > Signed-off-by: Mike Rapoport (Microsoft) Reviewed-by: Jiaxun Yang MIPS should go arch_numa at some point as well. Thanks - Jiaxun > --- > arch/mips/include/asm/mach-loongson64/mmzone.h | 4 ++-- > arch/mips/loongson64/numa.c | 8 ++++---- > 2 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/arch/mips/include/asm/mach-loongson64/mmzone.h=20 > b/arch/mips/include/asm/mach-loongson64/mmzone.h > index a3d65d37b8b5..2effd5f8ed62 100644 > --- a/arch/mips/include/asm/mach-loongson64/mmzone.h > +++ b/arch/mips/include/asm/mach-loongson64/mmzone.h > @@ -14,9 +14,9 @@ > #define pa_to_nid(addr) (((addr) & 0xf00000000000) >>=20 > NODE_ADDRSPACE_SHIFT) > #define nid_to_addrbase(nid) ((unsigned long)(nid) <<=20 > NODE_ADDRSPACE_SHIFT) >=20 > -extern struct pglist_data *__node_data[]; > +extern struct pglist_data *node_data[]; >=20 > -#define NODE_DATA(n) (__node_data[n]) > +#define NODE_DATA(n) (node_data[n]) >=20 > extern void __init prom_init_numa_memory(void); >=20 > diff --git a/arch/mips/loongson64/numa.c b/arch/mips/loongson64/numa.c > index 68dafd6d3e25..b50ce28d2741 100644 > --- a/arch/mips/loongson64/numa.c > +++ b/arch/mips/loongson64/numa.c > @@ -29,8 +29,8 @@ >=20 > unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES]; > EXPORT_SYMBOL(__node_distances); > -struct pglist_data *__node_data[MAX_NUMNODES]; > -EXPORT_SYMBOL(__node_data); > +struct pglist_data *node_data[MAX_NUMNODES]; > +EXPORT_SYMBOL(node_data); >=20 > cpumask_t __node_cpumask[MAX_NUMNODES]; > EXPORT_SYMBOL(__node_cpumask); > @@ -107,7 +107,7 @@ static void __init node_mem_init(unsigned int node) > tnid =3D early_pfn_to_nid(nd_pa >> PAGE_SHIFT); > if (tnid !=3D node) > pr_info("NODE_DATA(%d) on node %d\n", node, tnid); > - __node_data[node] =3D nd; > + node_data[node] =3D nd; > NODE_DATA(node)->node_start_pfn =3D start_pfn; > NODE_DATA(node)->node_spanned_pages =3D end_pfn - start_pfn; >=20 > @@ -206,5 +206,5 @@ pg_data_t * __init arch_alloc_nodedata(int nid) >=20 > void arch_refresh_nodedata(int nid, pg_data_t *pgdat) > { > - __node_data[nid] =3D pgdat; > + node_data[nid] =3D pgdat; > } > --=20 > 2.43.0 --=20 - Jiaxun