[PATCH v3 2/5] arm64/mm: drop vmemmap_pmd helpers and use generic code
Muchun Song
songmuchun at bytedance.com
Mon Jun 1 01:48:41 PDT 2026
The generic implementations now suffice; remove the arm64 copies.
Signed-off-by: Muchun Song <songmuchun at bytedance.com>
Acked-by: Will Deacon <will at kernel.org>
---
v2->v3:
- Collect Acked-by from Will Deacon
---
arch/arm64/mm/mmu.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index 24388e5c727d..ea10b0ebecd7 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -1776,20 +1776,6 @@ static void free_empty_tables(unsigned long addr, unsigned long end,
}
#endif
-void __meminit vmemmap_set_pmd(pmd_t *pmdp, void *p, int node,
- unsigned long addr, unsigned long next)
-{
- pmd_set_huge(pmdp, __pa(p), __pgprot(PROT_SECT_NORMAL));
-}
-
-int __meminit vmemmap_check_pmd(pmd_t *pmdp, int node,
- unsigned long addr, unsigned long next)
-{
- vmemmap_verify((pte_t *)pmdp, node, addr, next);
-
- return pmd_leaf(READ_ONCE(*pmdp));
-}
-
int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node,
struct vmem_altmap *altmap)
{
--
2.54.0
More information about the linux-arm-kernel
mailing list