Skip to contentSkip to conversation

s390: cleanup kconfig defaults for selftests

PATCH Applied Julian Braha 2 participants 2 messages May 12 – May 20 s390

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390: cleanup kconfig defaults for selftests

Remove the unconditional defaults of 'n' from the def_tristate statements, which shadow the later 'KUNIT_ALL_TESTS' default, causing it to be dead kconfig code.

Also, include S390_KPROBES_SANITY_TEST in KUNIT_ALL_TESTS.

This dead code was found by kconfirm, a static analysis tool for Kconfig.

---
 arch/s390/Kconfig | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
arch/s390/Kconfig +3 -5
index ecbcbb781e40..4d7c492c6bca 100644
@@ -999,9 +999,8 @@ config S390_MODULES_SANITY_TEST_HELPERS
 menu "Selftests"
 
 config S390_UNWIND_SELFTEST
-	def_tristate n
+	def_tristate KUNIT_ALL_TESTS
 	depends on KUNIT
-	default KUNIT_ALL_TESTS
 	prompt "Test unwind functions"
 	help
 	  This option enables s390 specific stack unwinder testing kernel
@@ -1011,7 +1010,7 @@ config S390_UNWIND_SELFTEST
 	  Say N if you are unsure.
 
 config S390_KPROBES_SANITY_TEST
-	def_tristate n
+	def_tristate KUNIT_ALL_TESTS
 	prompt "Enable s390 specific kprobes tests"
 	depends on KPROBES
 	depends on KUNIT
@@ -1023,9 +1022,8 @@ config S390_KPROBES_SANITY_TEST
 	  Say N if you are unsure.
 
 config S390_MODULES_SANITY_TEST
-	def_tristate n
+	def_tristate KUNIT_ALL_TESTS
 	depends on KUNIT && m
-	default KUNIT_ALL_TESTS
 	prompt "Enable s390 specific modules tests"
 	select S390_MODULES_SANITY_TEST_HELPERS
 	help
Signature · 1 line
2.53.0
maintainer Applied
#1 lore raw
Quoted 4 lines · Julian Braha

Remove the unconditional defaults of 'n' from the def_tristate statements, which shadow the later 'KUNIT_ALL_TESTS' default, causing it to be dead kconfig code.

Quoted 8 lines

Also, include S390_KPROBES_SANITY_TEST in KUNIT_ALL_TESTS.

This dead code was found by kconfirm, a static analysis tool for Kconfig.

---
 arch/s390/Kconfig | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

Applied, thanks!