[PATCH 5/5] sparc/mm: drop vmemmap_check_pmd helper and use generic code

From: Muchun Song

Date: Sat Apr 04 2026 - 03:19:20 EST


The generic implementations now suffice; remove the sparc copies.

Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
---
arch/sparc/mm/init_64.c | 11 -----------
1 file changed, 11 deletions(-)

diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c
index 367c269305e5..4a089da0a490 100644
--- a/arch/sparc/mm/init_64.c
+++ b/arch/sparc/mm/init_64.c
@@ -2579,17 +2579,6 @@ void __meminit vmemmap_set_pmd(pmd_t *pmd, void *p, int node,
pmd_val(*pmd) = pte_base | __pa(p);
}

-int __meminit vmemmap_check_pmd(pmd_t *pmdp, int node,
- unsigned long addr, unsigned long next)
-{
- int large = pmd_leaf(*pmdp);
-
- if (large)
- vmemmap_verify((pte_t *)pmdp, node, addr, next);
-
- return large;
-}
-
int __meminit vmemmap_populate(unsigned long vstart, unsigned long vend,
int node, struct vmem_altmap *altmap)
{
--
2.20.1