RISC-V: Fix the XIP build
authorPalmer Dabbelt <palmer@rivosinc.com>
Wed, 20 Apr 2022 03:13:27 +0000 (20:13 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 25 May 2022 21:43:42 +0000 (14:43 -0700)
commitd9e418d0ca1c464fe361468b772d4aa870d54e63
tree1cc840fb1ebc782403e066cd00424487239bdb82
parente7681beba992d5a196476d5d79dfcb48f2a2c477
RISC-V: Fix the XIP build

A handful of functions unused functions were enabled during XIP builds,
which themselves didn't build correctly.  This just disables the
functions entirely.

Fixes: e8a62cc26ddf ("riscv: Implement sv48 support")
Reviewed-by: Guo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/r/20220420184056.7886-5-palmer@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/init.c