Skip to content

Commit 9fe57d8

Browse files
Kefeng Wangpaul-walmsley-sifive
authored andcommitted
riscv: Fix undefined reference to vmemmap_populate_basepages
Using CONFIG_SPARSEMEM_VMEMMAP instead of CONFIG_SPARSEMEM to fix following build issue. riscv64-linux-ld: arch/riscv/mm/init.o: in function 'vmemmap_populate': init.c:(.meminit.text+0x8): undefined reference to 'vmemmap_populate_basepages' Cc: Logan Gunthorpe <[email protected]> Fixes: d95f1a5 ("RISC-V: Implement sparsemem") Signed-off-by: Kefeng Wang <[email protected]> Reviewed-by: Logan Gunthorpe <[email protected]> Signed-off-by: Paul Walmsley <[email protected]>
1 parent 62103ec commit 9fe57d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ void __init paging_init(void)
458458
zone_sizes_init();
459459
}
460460

461-
#ifdef CONFIG_SPARSEMEM
461+
#ifdef CONFIG_SPARSEMEM_VMEMMAP
462462
int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node,
463463
struct vmem_altmap *altmap)
464464
{

0 commit comments

Comments
 (0)