RISC-V: Always define XIP_FIXUP
authorPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 28 Apr 2021 21:45:12 +0000 (14:45 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 1 May 2021 15:53:41 +0000 (08:53 -0700)
commitf54c7b5898d31eda3d6608da13b55c0466ba49fe
tree9ad43de2520c5ec9f5499e4448ead398a55ec360
parent28252e08649f3aa06cb6b5420e29df7a9d5fe67d
RISC-V: Always define XIP_FIXUP

XIP depends on MMU, but XIP_FIXUP is used throughout the kernel in
order to avoid excessive ifdefs.  This just makes sure to always define
XIP_FIXUP, which will fix MMU=n builds.  XIP_OFFSET is used by assembly
but XIP_FIXUP is C-only, so they're split.

Fixes: 44c922572952 ("RISC-V: enable XIP")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Tested-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/pgtable.h