Skip to content

Commit bf6b3fe

Browse files
osandovctmarinas
authored andcommitted
arm64: remove unused ARCH_PFN_OFFSET
This is only relevant to the FLATMEM memory model, which isn't an option since commit 782276b ("arm64: Force SPARSEMEM_VMEMMAP as the only memory management model"). Signed-off-by: Omar Sandoval <osandov@fb.com> Acked-by: Will Deacon <will@kernel.org> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent d3b570e commit bf6b3fe

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

arch/arm64/include/asm/memory.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ static inline unsigned long virt_to_pfn(const void *kaddr)
392392
* virt_to_page(x) convert a _valid_ virtual address to struct page *
393393
* virt_addr_valid(x) indicates whether a virtual address is valid
394394
*/
395-
#define ARCH_PFN_OFFSET ((unsigned long)PHYS_PFN_OFFSET)
396395

397396
#if defined(CONFIG_DEBUG_VIRTUAL)
398397
#define page_to_virt(x) ({ \

0 commit comments

Comments
 (0)