]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7184de65b4b672f843a7d07753d253fefd64fdf
tree00bebeeebee0d898aaa52821ac1e2e18e295be19
parent495bad3e26a5f715760e9f5f27e672558f66b799
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: 6926d79460ca ("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