riscv: pgtable: Fix __kernel_map_pages build error if NOMMU
authorKefeng Wang <wangkefeng.wang@huawei.com>
Mon, 11 May 2020 02:19:59 +0000 (10:19 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 14 May 2020 00:11:39 +0000 (17:11 -0700)
commit9a6630aef93394ac54494c7e273e9bc026509375
tree78fb0cd93bba50b2610d66861498e55dad716354
parent69868418e14873638f7fb54e79b3390624af4824
riscv: pgtable: Fix __kernel_map_pages build error if NOMMU

riscv64-none-linux-gnu-ld: mm/page_alloc.o: in function `.L0 ':
page_alloc.c:(.text+0xd34): undefined reference to `__kernel_map_pages'
riscv64-none-linux-gnu-ld: page_alloc.c:(.text+0x104a): undefined reference to `__kernel_map_pages'
riscv64-none-linux-gnu-ld: mm/page_alloc.o: in function `__pageblock_pfn_to_page':
page_alloc.c:(.text+0x145e): undefined reference to `__kernel_map_pages'

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/pgtable.h