]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Fix 32b kernel build with CONFIG_DEBUG_VIRTUAL=y
authorAlexandre Ghiti <alex@ghiti.fr>
Wed, 28 Apr 2021 10:02:17 +0000 (06:02 -0400)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 1 May 2021 15:53:31 +0000 (08:53 -0700)
commitdcc7689342a36384c2083ee810c79121e28fe2ce
treea23449f9bacb325f6ebe6d6771b02d11cd73502e
parentb6542208b66d0642de3912ebb3d11c84646987e1
riscv: Fix 32b kernel build with CONFIG_DEBUG_VIRTUAL=y

Declare kernel_virt_addr for 32b kernel since it is used in
__phys_addr_symbol defined when CONFIG_DEBUG_VIRTUAL is set.

Fixes: 7ab87eaa7eafd ("riscv: Move kernel mapping outside of linear mapping")
Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/page.h