Skip to contentSkip to conversation

riscv: sifive: fix Kconfig errata warning

PATCH In review Randy Dunlap 2 participants 3 messages May 22, 2021 – Jun 13, 2021 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: sifive: fix Kconfig errata warning

The SOC_SIFIVE Kconfig entry unconditionally selects ERRATA_SIFIVE. However, ERRATA_SIFIVE depends on RISCV_ERRATA_ALTERNATIVE, which is not set, so SOC_SIFIVE should either depend on or select RISCV_ERRATA_ALTERNATIVE. Use 'select' here to quieten the Kconfig warning.

WARNING: unmet direct dependencies detected for ERRATA_SIFIVE
Depends on [n]: RISCV_ERRATA_ALTERNATIVE [=n] Selected by [y]:
- SOC_SIFIVE [=y]

Fixes 1a0e5dbd3723 ("riscv: sifive: Add SiFive alternative ports")
Cc Paul Walmsley <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Albert Ou <[email protected]>
Cc Vincent Chen <[email protected]>
---
 arch/riscv/Kconfig.socs |    1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig.socs +1 -0
@@ -14,6 +14,7 @@ config SOC_SIFIVE
 	select CLK_SIFIVE
 	select CLK_SIFIVE_PRCI
 	select SIFIVE_PLIC
+	select RISCV_ERRATA_ALTERNATIVE
 	select ERRATA_SIFIVE
 	help
 	  This enables support for SiFive SoC platform hardware.
#1 lore raw

ping. anyone?
thanks.

Quoted 33 lines · Randy Dunlap

The SOC_SIFIVE Kconfig entry unconditionally selects ERRATA_SIFIVE. However, ERRATA_SIFIVE depends on RISCV_ERRATA_ALTERNATIVE, which is not set, so SOC_SIFIVE should either depend on or select RISCV_ERRATA_ALTERNATIVE. Use 'select' here to quieten the Kconfig warning.

WARNING: unmet direct dependencies detected for ERRATA_SIFIVE
Depends on [n]: RISCV_ERRATA_ALTERNATIVE [=n] Selected by [y]:
- SOC_SIFIVE [=y]

Fixes 1a0e5dbd3723 ("riscv: sifive: Add SiFive alternative ports")
Cc Paul Walmsley <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Albert Ou <[email protected]>
Cc Vincent Chen <[email protected]>
---
 arch/riscv/Kconfig.socs |    1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig.socs +1 -0
@@ -14,6 +14,7 @@ config SOC_SIFIVE
 	select CLK_SIFIVE
 	select CLK_SIFIVE_PRCI
 	select SIFIVE_PLIC
+	select RISCV_ERRATA_ALTERNATIVE
 	select ERRATA_SIFIVE
 	help
 	  This enables support for SiFive SoC platform hardware.
Signature · 1 line
~Randy
maintainer
#2 lore raw
Quoted 2 lines · On Sun, 06 Jun 2021 16:46:15 PDT (-0700), [email protected] wrote:

ping. anyone?
thanks.

Sorry, I missed the original patch. This is on fixes.

Quoted 35 lines · Randy Dunlap
Quoted 33 lines

The SOC_SIFIVE Kconfig entry unconditionally selects ERRATA_SIFIVE. However, ERRATA_SIFIVE depends on RISCV_ERRATA_ALTERNATIVE, which is not set, so SOC_SIFIVE should either depend on or select RISCV_ERRATA_ALTERNATIVE. Use 'select' here to quieten the Kconfig warning.

WARNING: unmet direct dependencies detected for ERRATA_SIFIVE
Depends on [n]: RISCV_ERRATA_ALTERNATIVE [=n] Selected by [y]:
- SOC_SIFIVE [=y]

Fixes 1a0e5dbd3723 ("riscv: sifive: Add SiFive alternative ports")
Cc Paul Walmsley <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Albert Ou <[email protected]>
Cc Vincent Chen <[email protected]>
---
 arch/riscv/Kconfig.socs |    1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig.socs +1 -0
@@ -14,6 +14,7 @@ config SOC_SIFIVE
 	select CLK_SIFIVE
 	select CLK_SIFIVE_PRCI
 	select SIFIVE_PLIC
+	select RISCV_ERRATA_ALTERNATIVE
 	select ERRATA_SIFIVE
 	help
 	  This enables support for SiFive SoC platform hardware.