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 <julianbraha@gmail.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
Julian Braha 2026-05-12 18:43:36 +01:00 committed by Alexander Gordeev
parent cb3852f3e5
commit 30cc5e2ad8

View File

@ -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