riscv: Fix undefined reference to vmemmap_populate_basepages
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 23 Oct 2019 03:23:02 +0000 (11:23 +0800)
committerPaul Walmsley <paul.walmsley@sifive.com>
Wed, 23 Oct 2019 21:53:46 +0000 (14:53 -0700)
commit9fe57d8c575d7dc012bbfcf5698048304206a99d
tree00bebeeebee0d898aaa52821ac1e2e18e295be19
parent62103ece52360992a6799e9ec85628166a8477e8
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>
arch/riscv/mm/init.c