Skip to content

Commit 9a6630a

Browse files
Kefeng Wangpalmer-dabbelt
authored andcommitted
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 <[email protected]> Signed-off-by: Kefeng Wang <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 6986841 commit 9a6630a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/riscv/include/asm/pgtable.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,8 @@ static inline int ptep_clear_flush_young(struct vm_area_struct *vma,
477477

478478
#define TASK_SIZE 0xffffffffUL
479479

480+
static inline void __kernel_map_pages(struct page *page, int numpages, int enable) {}
481+
480482
#endif /* !CONFIG_MMU */
481483

482484
#define kern_addr_valid(addr) (1) /* FIXME */

0 commit comments

Comments
 (0)