[PATCH v3 3/5] riscv/mm: drop vmemmap_pmd helpers and use generic code
Muchun Song
songmuchun at bytedance.com
Mon Jun 1 01:48:42 PDT 2026
The generic implementations now suffice; remove the riscv copies.
Signed-off-by: Muchun Song <songmuchun at bytedance.com>
---
arch/riscv/mm/init.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
index 885f1db4e9bf..5f680eb83e86 100644
--- a/arch/riscv/mm/init.c
+++ b/arch/riscv/mm/init.c
@@ -1359,19 +1359,6 @@ void __init misc_mem_init(void)
}
#ifdef CONFIG_SPARSEMEM_VMEMMAP
-void __meminit vmemmap_set_pmd(pmd_t *pmd, void *p, int node,
- unsigned long addr, unsigned long next)
-{
- pmd_set_huge(pmd, virt_to_phys(p), PAGE_KERNEL);
-}
-
-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 1;
-}
-
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