Re: [PATCH 3/3] mm, arch: add generic implementation of pfn_valid() for FLATMEM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "Mike Rapoport" <rppt@xxxxxxxxxx>, "Andrew Morton" <akpm@xxxxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH 3/3] mm, arch: add generic implementation of pfn_valid() for FLATMEM
- From: "Arnd Bergmann" <arnd@xxxxxxxx>
- Date: Thu, 26 Jan 2023 08:22:15 +0100
- Cc: "Brian Cain" <bcain@xxxxxxxxxxx>, "David S . Miller" <davem@xxxxxxxxxxxxx>, "Dinh Nguyen" <dinguyen@xxxxxxxxxx>, "Geert Uytterhoeven" <geert@xxxxxxxxxxxxxx>, "Greg Ungerer" <gerg@xxxxxxxxxxxxxx>, guoren <guoren@xxxxxxxxxx>, "Helge Deller" <deller@xxxxxx>, "Huacai Chen" <chenhuacai@xxxxxxxxxx>, "Matt Turner" <mattst88@xxxxxxxxx>, "Max Filippov" <jcmvbkbc@xxxxxxxxx>, "Michael Ellerman" <mpe@xxxxxxxxxxxxxx>, "Michal Simek" <monstr@xxxxxxxxx>, "Palmer Dabbelt" <palmer@xxxxxxxxxxx>, "Rich Felker" <dalias@xxxxxxxx>, "Richard Weinberger" <richard@xxxxxx>, "Stafford Horne" <shorne@xxxxxxxxx>, "Thomas Bogendoerfer" <tsbogend@xxxxxxxxxxxxxxxx>, "Vineet Gupta" <vgupta@xxxxxxxxxx>, "WANG Xuerui" <kernel@xxxxxxxxxx>, "Yoshinori Sato" <ysato@xxxxxxxxxxxxx>, linux-alpha@xxxxxxxxxxxxxxx, Linux-Arch <linux-arch@xxxxxxxxxxxxxxx>, linux--csky@xxxxxxxxxxxxxxx, linux-hexagon@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-m68k@xxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx, linux-riscv@xxxxxxxxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, linux-snps-arc@xxxxxxxxxxxxxxxxxxx, linux-um@xxxxxxxxxxxxxxxxxxx, linux-xtensa@xxxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, loongarch@xxxxxxxxxxxxxxx, openrisc@xxxxxxxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx
- Feedback-id: i56a14606:Fastmail
- In-reply-to: <20230125190757.22555-4-rppt@kernel.org>
- References: <20230125190757.22555-1-rppt@kernel.org> <20230125190757.22555-4-rppt@kernel.org>
- User-agent: Cyrus-JMAP/3.9.0-alpha0-85-gd6d859e0cf-fm-20230116.001-gd6d859e0
On Wed, Jan 25, 2023, at 20:07, Mike Rapoport wrote:
> From: "Mike Rapoport (IBM)" <rppt@xxxxxxxxxx>
>
> Every architecture that supports FLATMEM memory model defines its own
> version of pfn_valid() that essentially compares a pfn to max_mapnr.
>
> Use mips/powerpc version implemented as static inline as a generic
> implementation of pfn_valid() and drop its per-architecture definitions
>
> Signed-off-by: Mike Rapoport (IBM) <rppt@xxxxxxxxxx>
Acked-by: Arnd Bergmann <arnd@xxxxxxxx>
I assume this can best go through the mm tree, let me know if I should
pick it up in the asm-generic tree instead.
Arnd
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]