Skip to content

Commit 225e47e

Browse files
rddunlappalmer-dabbelt
authored andcommitted
riscv: fix RISCV_ISA_SVPBMT kconfig dependency warning
RISCV_ISA_SVPBMT selects RISCV_ALTERNATIVE which depends on !XIP_KERNEL. Therefore RISCV_ISA_SVPBMT should also depend on !XIP_KERNEL so quieten this kconfig warning: WARNING: unmet direct dependencies detected for RISCV_ALTERNATIVE Depends on [n]: !XIP_KERNEL [=y] Selected by [y]: - RISCV_ISA_SVPBMT [=y] && 64BIT [=y] && MMU [=y] Fixes: ff689fd ("riscv: add RISC-V Svpbmt extension support") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: stable@vger.kernel.org Reviewed-by: Heiko Stuebner <heiko@sntech.de> Link: https://lore.kernel.org/r/20220709014929.14221-1-rdunlap@infradead.org/ Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 8f7e001 commit 225e47e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ config RISCV_ISA_C
386386
config RISCV_ISA_SVPBMT
387387
bool "SVPBMT extension support"
388388
depends on 64BIT && MMU
389+
depends on !XIP_KERNEL
389390
select RISCV_ALTERNATIVE
390391
default y
391392
help

0 commit comments

Comments
 (0)