riscv: fix dependency for t-head errata

A patch from »riscv: some svpbmt fixes« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Wed, 18 May 2022 17:17:56 +0200

Commit-Message

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 <yujie.liu@...> Reviewed-by: Guo Ren <guoren@...> Signed-off-by: Heiko Stuebner <heiko@...>

Patch-Comment

arch/riscv/Kconfig.erratas | 1 + 1 file changed, 1 insertion(+)

Statistics

  • 1 lines added
  • 0 lines removed

Changes

-------------------------- arch/riscv/Kconfig.erratas --------------------------
index ebfcd5cc6eaf..457ac72c9b36 100644
@@ -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
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...