]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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)
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

index 83f7d12042fbc781ab91a3a90c70043400f66c81..a1ca6200c31fc5729956dadbed6af70c438647e8 100644 (file)
@@ -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)
 {