diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2019-10-23 11:23:02 +0800 |
---|---|---|
committer | Paul Walmsley <paul.walmsley@sifive.com> | 2019-10-23 14:53:46 -0700 |
commit | 9fe57d8c575d7dc012bbfcf5698048304206a99d (patch) | |
tree | 00bebeeebee0d898aaa52821ac1e2e18e295be19 /arch/riscv/mm/init.c | |
parent | 62103ece52360992a6799e9ec85628166a8477e8 (diff) | |
download | lwn-9fe57d8c575d7dc012bbfcf5698048304206a99d.tar.gz lwn-9fe57d8c575d7dc012bbfcf5698048304206a99d.zip |
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 <logang@deltatee.com>
Fixes: d95f1a542c3d ("RISC-V: Implement sparsemem")
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Diffstat (limited to 'arch/riscv/mm/init.c')
-rw-r--r-- | arch/riscv/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 83f7d12042fb..a1ca6200c31f 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -458,7 +458,7 @@ void __init paging_init(void) zone_sizes_init(); } -#ifdef CONFIG_SPARSEMEM +#ifdef CONFIG_SPARSEMEM_VMEMMAP int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node, struct vmem_altmap *altmap) { |