Skip to content

Commit 01f5315

Browse files
rddunlappalmer-dabbelt
authored andcommitted
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: 1a0e5db ("riscv: sifive: Add SiFive alternative ports") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Albert Ou <aou@eecs.berkeley.edu> Cc: linux-riscv@lists.infradead.org Cc: Vincent Chen <vincent.chen@sifive.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
1 parent 5d2388d commit 01f5315

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/riscv/Kconfig.socs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ config SOC_SIFIVE
1414
select CLK_SIFIVE
1515
select CLK_SIFIVE_PRCI
1616
select SIFIVE_PLIC
17+
select RISCV_ERRATA_ALTERNATIVE
1718
select ERRATA_SIFIVE
1819
help
1920
This enables support for SiFive SoC platform hardware.

0 commit comments

Comments
 (0)