Skip to content

Commit 8fa3cdf

Browse files
Kefeng Wangpalmer-dabbelt
authored andcommitted
riscv: Fix print_vm_layout build error if NOMMU
arch/riscv/mm/init.c: In function ‘print_vm_layout’: arch/riscv/mm/init.c:68:37: error: ‘FIXADDR_START’ undeclared (first use in this function); arch/riscv/mm/init.c:69:20: error: ‘FIXADDR_TOP’ undeclared arch/riscv/mm/init.c:70:37: error: ‘PCI_IO_START’ undeclared arch/riscv/mm/init.c:71:20: error: ‘PCI_IO_END’ undeclared arch/riscv/mm/init.c:72:38: error: ‘VMEMMAP_START’ undeclared arch/riscv/mm/init.c:73:20: error: ‘VMEMMAP_END’ undeclared (first use in this function); Reported-by: Hulk Robot <[email protected]> Signed-off-by: Kefeng Wang <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent b9bbe6e commit 8fa3cdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void setup_zero_page(void)
4747
memset((void *)empty_zero_page, 0, PAGE_SIZE);
4848
}
4949

50-
#ifdef CONFIG_DEBUG_VM
50+
#if defined(CONFIG_MMU) && defined(CONFIG_DEBUG_VM)
5151
static inline void print_mlk(char *name, unsigned long b, unsigned long t)
5252
{
5353
pr_notice("%12s : 0x%08lx - 0x%08lx (%4ld kB)\n", name, b, t,

0 commit comments

Comments
 (0)