[PATCH] arm64: remove unused ARCH_PFN_OFFSET
Anshuman Khandual
anshuman.khandual at arm.com
Thu Oct 9 19:17:49 PDT 2025
On 09/10/25 4:31 AM, Omar Sandoval wrote:
> From: Omar Sandoval <osandov at fb.com>
>
> This is only relevant to the FLATMEM memory model, which isn't an option
> since commit 782276b4d0ad ("arm64: Force SPARSEMEM_VMEMMAP as the only
> memory management model").
>
> Signed-off-by: Omar Sandoval <osandov at fb.com>
FLATMEM cannot be selected on arm64 platform which always selects SPARSEMEM.
Reviewed-by: Anshuman Khandual <anshuman.khandual at arm.com>
> ---
> arch/arm64/include/asm/memory.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h
> index f1505c4acb38..585a46a122fe 100644
> --- a/arch/arm64/include/asm/memory.h
> +++ b/arch/arm64/include/asm/memory.h
> @@ -392,7 +392,6 @@ static inline unsigned long virt_to_pfn(const void *kaddr)
> * virt_to_page(x) convert a _valid_ virtual address to struct page *
> * virt_addr_valid(x) indicates whether a virtual address is valid
> */
> -#define ARCH_PFN_OFFSET ((unsigned long)PHYS_PFN_OFFSET)
>
> #if defined(CONFIG_DEBUG_VIRTUAL)
> #define page_to_virt(x) ({ \
More information about the linux-arm-kernel
mailing list