]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kunit: config: Enable KUNIT_DEBUGFS by default
authorDavid Gow <david@davidgow.net>
Sat, 25 Apr 2026 03:41:53 +0000 (11:41 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 4 May 2026 18:10:40 +0000 (12:10 -0600)
The KUNIT_DEBUGFS option is currently enabled based on the value of
KUNIT_ALL_TESTS, but it really doesn't have anything to do with the set of
enabled tests, so just enable it by default anyway. In particular, this
shouldn't be only visible if KUNIT_ALL_TESTS is set, which is quite
confusing.

Link: https://lore.kernel.org/r/20260425034155.53913-1-david@davidgow.net
Fixes: beaed42c427d ("kunit: default KUNIT_* fragments to KUNIT_ALL_TESTS")
Signed-off-by: David Gow <david@davidgow.net>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/Kconfig

index 498cc51e493dc9a819e012b8082fb765f25512b9..f80ca3aeedb05d9f4d2e45999ac55d2a1cd62249 100644 (file)
@@ -16,8 +16,8 @@ menuconfig KUNIT
 if KUNIT
 
 config KUNIT_DEBUGFS
-       bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation" if !KUNIT_ALL_TESTS
-       default KUNIT_ALL_TESTS
+       bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation"
+       default y
        help
          Enable debugfs representation for kunit.  Currently this consists
          of /sys/kernel/debug/kunit/<test_suite>/results files for each