[PATCH RFC v3 03/21] ARM: mm: remove custom pgdp_get()
From: Yeoreum Yun
Date: Wed Sep 02 2026 - 08:02:35 EST
From: "David Hildenbrand (Arm)" <david@xxxxxxxxxx>
Now that pgd_t is no longer an array and 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 8dd17d20faa3..ff3868acea94 100644
--- a/arch/arm/include/asm/pgtable.h
+++ b/arch/arm/include/asm/pgtable.h
@@ -134,8 +134,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