Skip to contentSkip to conversation

riscv: fix RISCV_ISA_SVPBMT kconfig dependency warning

PATCH In review Randy Dunlap 4 participants 6 messages Jul 9, 2022 – Sep 15, 2022 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 ff689fd21cb1 ("riscv: add RISC-V Svpbmt extension support")
Cc Wei Fu <[email protected]>
Cc Liu Shaohua <[email protected]>
Cc Guo Ren <[email protected]>
Cc Heiko Stuebner <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Albert Ou <[email protected]>
---
 arch/riscv/Kconfig |    1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig +1 -0
@@ -362,6 +362,7 @@ config RISCV_ISA_C
 config RISCV_ISA_SVPBMT
 	bool "SVPBMT extension support"
 	depends on 64BIT && MMU
+	depends on !XIP_KERNEL
 	select RISCV_ALTERNATIVE
 	default y
 	help
Reviewed-by on v1 1/1
#1 lore raw
Quoted 34 lines · Randy Dunlap

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 ff689fd21cb1 ("riscv: add RISC-V Svpbmt extension support")
Cc Wei Fu <[email protected]>
Cc Liu Shaohua <[email protected]>
Cc Guo Ren <[email protected]>
Cc Heiko Stuebner <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Albert Ou <[email protected]>
---
 arch/riscv/Kconfig |    1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig +1 -0
@@ -362,6 +362,7 @@ config RISCV_ISA_C
 config RISCV_ISA_SVPBMT
        bool "SVPBMT extension support"
        depends on 64BIT && MMU
+       depends on !XIP_KERNEL
        select RISCV_ALTERNATIVE
        default y
        help
Signature · 2 lines
Best Regards
 Guo Ren
Reviewed-by on v1 1/1
#2 lore raw
In reply to Randy Dunlap

Am Samstag, 9. Juli 2022, 03:49:29 CEST schrieb Randy Dunlap:

Quoted 9 lines

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]

Quoted 10 lines
Fixes ff689fd21cb1 ("riscv: add RISC-V Svpbmt extension support")
Cc Wei Fu <[email protected]>
Cc Liu Shaohua <[email protected]>
Cc Guo Ren <[email protected]>
Cc Heiko Stuebner <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Albert Ou <[email protected]>
#3 lore raw
In reply to Randy Dunlap

Hi Palmer,

Am Samstag, 9. Juli 2022, 03:49:29 CEST schrieb Randy Dunlap:

Quoted 11 lines

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 ff689fd21cb1 ("riscv: add RISC-V Svpbmt extension support")

I think this should also be applied as fix?

Thanks
Heiko

Quoted 23 lines
Cc Wei Fu <[email protected]>
Cc Liu Shaohua <[email protected]>
Cc Guo Ren <[email protected]>
Cc Heiko Stuebner <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Albert Ou <[email protected]>
---
 arch/riscv/Kconfig |    1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig +1 -0
@@ -362,6 +362,7 @@ config RISCV_ISA_C
 config RISCV_ISA_SVPBMT
 	bool "SVPBMT extension support"
 	depends on 64BIT && MMU
+	depends on !XIP_KERNEL
 	select RISCV_ALTERNATIVE
 	default y
 	help
maintainer
#4 lore raw
Quoted 12 lines · On Tue, 13 Sep 2022 05:00:08 PDT (-0700), [email protected] wrote:

Hi Palmer,

Am Samstag, 9. Juli 2022, 03:49:29 CEST schrieb Randy Dunlap:

Quoted 9 lines

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]

Quoted 4 lines
Quoted 2 lines
Fixes ff689fd21cb1 ("riscv: add RISC-V Svpbmt extension support")

I think this should also be applied as fix?

Thanks, the original seems to have gotten lost somewhere but I've picked this up from lore.

Quoted 17 lines

Thanks
Heiko

Quoted 12 lines
Cc Wei Fu <[email protected]>
Cc Liu Shaohua <[email protected]>
Cc Guo Ren <[email protected]>
Cc Heiko Stuebner <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Albert Ou <[email protected]>
---
 arch/riscv/Kconfig |    1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

arch/riscv/Kconfig config RISCV_ISA_C · line 368

Quoted 11 lines
arch/riscv/Kconfig +1 -0
@@ -362,6 +362,7 @@ config RISCV_ISA_C
 config RISCV_ISA_SVPBMT
 	bool "SVPBMT extension support"
 	depends on 64BIT && MMU
+	depends on !XIP_KERNEL
 	select RISCV_ALTERNATIVE
 	default y
 	help

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

maintainer
#5 lore raw
In reply to Heiko Stuebner
Quoted 33 lines · On Tue, 13 Sep 2022 05:00:08 PDT (-0700), [email protected] wrote:

Hi Palmer,

Am Samstag, 9. Juli 2022, 03:49:29 CEST schrieb Randy Dunlap:

Quoted 11 lines

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 ff689fd21cb1 ("riscv: add RISC-V Svpbmt extension support")

I think this should also be applied as fix?

Thanks
Heiko

Quoted 12 lines
Cc Wei Fu <[email protected]>
Cc Liu Shaohua <[email protected]>
Cc Guo Ren <[email protected]>
Cc Heiko Stuebner <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Albert Ou <[email protected]>
---
 arch/riscv/Kconfig |    1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

arch/riscv/Kconfig config RISCV_ISA_C · line 368

Quoted 11 lines
arch/riscv/Kconfig +1 -0
@@ -362,6 +362,7 @@ config RISCV_ISA_C
 config RISCV_ISA_SVPBMT
 	bool "SVPBMT extension support"
 	depends on 64BIT && MMU
+	depends on !XIP_KERNEL
 	select RISCV_ALTERNATIVE
 	default y
 	help

Thanks, this is on fixes.

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv