Skip to content

Commit bf9bac4

Browse files
rddunlappalmer-dabbelt
authored andcommitted
RISC-V: cpuidle: fix Kconfig select for RISCV_SBI_CPUIDLE
There can be lots of build errors when building cpuidle-riscv-sbi.o. They are all caused by a kconfig problem with this warning: WARNING: unmet direct dependencies detected for RISCV_SBI_CPUIDLE Depends on [n]: CPU_IDLE [=y] && RISCV [=y] && RISCV_SBI [=n] Selected by [y]: - SOC_VIRT [=y] && CPU_IDLE [=y] so make the 'select' of RISCV_SBI_CPUIDLE also depend on RISCV_SBI. Fixes: c5179ef ("RISC-V: Enable RISC-V SBI CPU Idle driver for QEMU virt machine") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Anup Patel <anup@brainfault.org> Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent d5fdade commit bf9bac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/Kconfig.socs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ config SOC_VIRT
3838
select SIFIVE_PLIC
3939
select PM_GENERIC_DOMAINS if PM
4040
select PM_GENERIC_DOMAINS_OF if PM && OF
41-
select RISCV_SBI_CPUIDLE if CPU_IDLE
41+
select RISCV_SBI_CPUIDLE if CPU_IDLE && RISCV_SBI
4242
help
4343
This enables support for QEMU Virt Machine.
4444

0 commit comments

Comments
 (0)