[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <11c4ffb9-ea48-44d0-8a58-2c705c7176de@redhat.com>
Date: Wed, 17 Jul 2024 16:35:02 +0200
From: David Hildenbrand <david@...hat.com>
To: Mike Rapoport <rppt@...nel.org>, linux-kernel@...r.kernel.org
Cc: Alexander Gordeev <agordeev@...ux.ibm.com>,
Andreas Larsson <andreas@...sler.com>,
Andrew Morton <akpm@...ux-foundation.org>, Arnd Bergmann <arnd@...db.de>,
Borislav Petkov <bp@...en8.de>, Catalin Marinas <catalin.marinas@....com>,
Christophe Leroy <christophe.leroy@...roup.eu>,
Dan Williams <dan.j.williams@...el.com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
"David S. Miller" <davem@...emloft.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Heiko Carstens <hca@...ux.ibm.com>, Huacai Chen <chenhuacai@...nel.org>,
Ingo Molnar <mingo@...hat.com>, Jiaxun Yang <jiaxun.yang@...goat.com>,
John Paul Adrian Glaubitz <glaubitz@...sik.fu-berlin.de>,
Jonathan Cameron <jonathan.cameron@...wei.com>,
Michael Ellerman <mpe@...erman.id.au>, Palmer Dabbelt <palmer@...belt.com>,
"Rafael J. Wysocki" <rafael@...nel.org>, Rob Herring <robh@...nel.org>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Thomas Gleixner <tglx@...utronix.de>, Vasily Gorbik <gor@...ux.ibm.com>,
Will Deacon <will@...nel.org>, linux-arm-kernel@...ts.infradead.org,
loongarch@...ts.linux.dev, linux-mips@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org, linux-riscv@...ts.infradead.org,
linux-s390@...r.kernel.org, linux-sh@...r.kernel.org,
sparclinux@...r.kernel.org, linux-acpi@...r.kernel.org,
linux-cxl@...r.kernel.org, nvdimm@...ts.linux.dev,
devicetree@...r.kernel.org, linux-arch@...r.kernel.org, linux-mm@...ck.org,
x86@...nel.org
Subject: Re: [PATCH 04/17] arch, mm: move definition of node_data to generic
code
On 16.07.24 13:13, Mike Rapoport wrote:
> From: "Mike Rapoport (Microsoft)" <rppt@...nel.org>
>
> Every architecture that supports NUMA defines node_data in the same way:
>
> struct pglist_data *node_data[MAX_NUMNODES];
>
> No reason to keep multiple copies of this definition and its forward
> declarations, especially when such forward declaration is the only thing
> in include/asm/mmzone.h for many architectures.
>
> Add definition and declaration of node_data to generic code and drop
> architecture-specific versions.
>
> Signed-off-by: Mike Rapoport (Microsoft) <rppt@...nel.org>
> ---
> arch/arm64/include/asm/Kbuild | 1 +
> arch/arm64/include/asm/mmzone.h | 13 -------------
> arch/arm64/include/asm/topology.h | 1 +
> arch/loongarch/include/asm/Kbuild | 1 +
> arch/loongarch/include/asm/mmzone.h | 16 ----------------
> arch/loongarch/include/asm/topology.h | 1 +
> arch/loongarch/kernel/numa.c | 3 ---
> arch/mips/include/asm/mach-ip27/mmzone.h | 4 ----
> arch/mips/include/asm/mach-loongson64/mmzone.h | 4 ----
> arch/mips/loongson64/numa.c | 2 --
> arch/mips/sgi-ip27/ip27-memory.c | 3 ---
> arch/powerpc/include/asm/mmzone.h | 6 ------
> arch/powerpc/mm/numa.c | 2 --
> arch/riscv/include/asm/Kbuild | 1 +
> arch/riscv/include/asm/mmzone.h | 13 -------------
> arch/riscv/include/asm/topology.h | 4 ++++
> arch/s390/include/asm/Kbuild | 1 +
> arch/s390/include/asm/mmzone.h | 17 -----------------
> arch/s390/kernel/numa.c | 3 ---
> arch/sh/include/asm/mmzone.h | 3 ---
> arch/sh/mm/numa.c | 3 ---
> arch/sparc/include/asm/mmzone.h | 4 ----
> arch/sparc/mm/init_64.c | 2 --
> arch/x86/include/asm/Kbuild | 1 +
> arch/x86/include/asm/mmzone.h | 6 ------
> arch/x86/include/asm/mmzone_32.h | 17 -----------------
> arch/x86/include/asm/mmzone_64.h | 18 ------------------
> arch/x86/mm/numa.c | 3 ---
> drivers/base/arch_numa.c | 2 --
> include/asm-generic/mmzone.h | 5 +++++
> include/linux/numa.h | 3 +++
> mm/numa.c | 3 +++
> 32 files changed, 22 insertions(+), 144 deletions(-)
> delete mode 100644 arch/arm64/include/asm/mmzone.h
> delete mode 100644 arch/loongarch/include/asm/mmzone.h
> delete mode 100644 arch/riscv/include/asm/mmzone.h
> delete mode 100644 arch/s390/include/asm/mmzone.h
> delete mode 100644 arch/x86/include/asm/mmzone.h
> delete mode 100644 arch/x86/include/asm/mmzone_32.h
> delete mode 100644 arch/x86/include/asm/mmzone_64.h
> create mode 100644 include/asm-generic/mmzone.h
Nice!
Acked-by: David Hildenbrand <david@...hat.com>
--
Cheers,
David / dhildenb
Powered by blists - more mailing lists