[PATCH v2 4/5] loongarch/mm: drop vmemmap_check_pmd helper and use generic code
From: Muchun Song
Date: Sat Apr 04 2026 - 08:21:46 EST
The generic implementations now suffice; remove the loongarch copies.
Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
---
arch/loongarch/mm/init.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/arch/loongarch/mm/init.c b/arch/loongarch/mm/init.c
index 00f3822b6e47..7356d4eea140 100644
--- a/arch/loongarch/mm/init.c
+++ b/arch/loongarch/mm/init.c
@@ -110,17 +110,6 @@ void __meminit vmemmap_set_pmd(pmd_t *pmd, void *p, int node,
set_pmd_at(&init_mm, addr, pmd, entry);
}
-int __meminit vmemmap_check_pmd(pmd_t *pmd, int node,
- unsigned long addr, unsigned long next)
-{
- int huge = pmd_val(pmdp_get(pmd)) & _PAGE_HUGE;
-
- if (huge)
- vmemmap_verify((pte_t *)pmd, node, addr, next);
-
- return huge;
-}
-
int __meminit vmemmap_populate(unsigned long start, unsigned long end,
int node, struct vmem_altmap *altmap)
{
--
2.20.1