riscv: alternative only works on !XIP_KERNEL
authorJisheng Zhang <jszhang@kernel.org>
Thu, 10 Feb 2022 16:49:43 +0000 (00:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Mar 2022 13:23:42 +0000 (14:23 +0100)
commit9b3cdf5e8ad99b49f84876340556dc738611d20e
tree046623f0c6cf1dd47e4d75acf210ab35cad1a48a
parentb5e792187f507db877bf45b645927f4f0ff8cb55
riscv: alternative only works on !XIP_KERNEL

commit c80ee64a8020ef1a6a92109798080786829b8994 upstream.

The alternative mechanism needs runtime code patching, it can't work
on XIP_KERNEL. And the errata workarounds are implemented via the
alternative mechanism. So add !XIP_KERNEL dependency for alternative
and erratas.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Fixes: 44c922572952 ("RISC-V: enable XIP")
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/riscv/Kconfig.erratas
arch/riscv/Kconfig.socs