[PATCH v2 4/4] mm, arch: add generic implementation of pfn_valid() for FLATMEM

David Hildenbrand david at redhat.com
Fri Feb 3 06:33:45 PST 2023


On 29.01.23 13:42, Mike Rapoport wrote:
> From: "Mike Rapoport (IBM)" <rppt at kernel.org>
> 
> 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 at kernel.org>
> Acked-by: Arnd Bergmann <arnd at arndb.de>
> Acked-by: Guo Ren <guoren at kernel.org>		# csky
> Acked-by: Huacai Chen <chenhuacai at loongson.cn>	# LoongArch
> Acked-by: Stafford Horne <shorne at gmail.com>	# OpenRISC
> ---

LGTM with the fixup

Reviewed-by: David Hildenbrand <david at redhat.com>

-- 
Thanks,

David / dhildenb




More information about the linux-riscv mailing list