aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Stuebner <[email protected]>2022-05-26 22:56:45 +0200
committerPalmer Dabbelt <[email protected]>2022-06-16 15:42:55 -0700
commit21f356f990262329bc387910355833378524fe9f (patch)
tree2cf7b292df2e1f58bb211ed33c53d995446c4286
parentf2906aa863381afb0015a9eb7fefad885d4e5a56 (diff)
riscv: fix dependency for t-head errata
alternatives only work correctly on non-xip-kernels and while the selected alternative-symbol has the correct dependency the symbol selecting it also needs that dependency. So add the missing dependency to the T-Head errata Kconfig symbol. Reported-by: kernel test robot <[email protected]> Reviewed-by: Guo Ren <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Fixes: a35707c3d850 ("riscv: add memory-type errata for T-Head") Signed-off-by: Palmer Dabbelt <[email protected]>
-rw-r--r--arch/riscv/Kconfig.erratas1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig.erratas b/arch/riscv/Kconfig.erratas
index ebfcd5cc6eaf..457ac72c9b36 100644
--- a/arch/riscv/Kconfig.erratas
+++ b/arch/riscv/Kconfig.erratas
@@ -35,6 +35,7 @@ config ERRATA_SIFIVE_CIP_1200
config ERRATA_THEAD
bool "T-HEAD errata"
+ depends on !XIP_KERNEL
select RISCV_ALTERNATIVE
help
All T-HEAD errata Kconfig depend on this Kconfig. Disabling