From: Julian Braha Date: Tue, 12 May 2026 17:43:36 +0000 (+0100) Subject: s390/Kconfig: Cleanup defaults for selftests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30cc5e2ad826a6d2308acdec3b462c1a6497b7b7;p=thirdparty%2Fkernel%2Flinux.git s390/Kconfig: Cleanup defaults for selftests Remove unconditional 'n' defaults from def_tristate statements, as they override the later 'KUNIT_ALL_TESTS' default, rendering it dead Kconfig code. This dead code was identified by kconfirm, a static analysis tool for Kconfig. Also include S390_KPROBES_SANITY_TEST in KUNIT_ALL_TESTS. Signed-off-by: Julian Braha Signed-off-by: Alexander Gordeev --- diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 301cdc9f73aff..771f738fe8bda 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -1000,9 +1000,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 @@ -1012,7 +1011,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 @@ -1024,9 +1023,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