[PATCH] arm64: remove unused ARCH_PFN_OFFSET
Will Deacon
will at kernel.org
Tue Nov 4 05:49:26 PST 2025
On Wed, Oct 08, 2025 at 04:01:30PM -0700, 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>
> ---
> 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) ({ \
Acked-by: Will Deacon <will at kernel.org>
Will
More information about the linux-arm-kernel
mailing list