Skip to content

Commit 21f356f

Browse files
mmindpalmer-dabbelt
authored andcommitted
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: a35707c ("riscv: add memory-type errata for T-Head") Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent f2906aa commit 21f356f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/Kconfig.erratas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ config ERRATA_SIFIVE_CIP_1200
3535

3636
config ERRATA_THEAD
3737
bool "T-HEAD errata"
38+
depends on !XIP_KERNEL
3839
select RISCV_ALTERNATIVE
3940
help
4041
All T-HEAD errata Kconfig depend on this Kconfig. Disabling

0 commit comments

Comments
 (0)