[PATCH RFC v2 03/20] ARM: mm: remove custom pgdp_get()
From: Yeoreum Yun
Date: Wed Jul 22 2026 - 11:54:01 EST
From: "David Hildenbrand (Arm)" <david@xxxxxxxxxx>
Now that pgd_t is no longer an array, we can just rely on the common
code pgdp_get(), which is a static inline function that returns pgd_t.
Signed-off-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
---
arch/arm/include/asm/pgtable.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h
index 982795cf4563..eadd027fe0ee 100644
--- a/arch/arm/include/asm/pgtable.h
+++ b/arch/arm/include/asm/pgtable.h
@@ -141,8 +141,6 @@ extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
-#define pgdp_get(pgpd) READ_ONCE(*pgdp)
-
#define pud_page(pud) pmd_page(__pmd(pud_val(pud)))
#define pud_write(pud) pmd_write(__pmd(pud_val(pud)))
--
2.43.0