]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm: fix dead default for DRM_TTM_KUNIT_TEST
authorJulian Braha <julianbraha@gmail.com>
Mon, 23 Mar 2026 12:41:18 +0000 (12:41 +0000)
committerChristian König <christian.koenig@amd.com>
Tue, 24 Mar 2026 15:19:04 +0000 (16:19 +0100)
The DRM_TTM_KUNIT_TEST config option should default
to KUNIT_ALL_TESTS so that if all tests are enabled then
it is included, but currently the 'default KUNIT_ALL_TESTS'
statement is shadowed by an unconditional 'default n',
meaning that this second default statement is currently dead code.

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

Signed-off-by: Julian Braha <julianbraha@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20260323124118.1414913-1-julianbraha@gmail.com
drivers/gpu/drm/Kconfig.debug

index 3b7886865335a353330d39074b6bbf62aa9dde4d..1f4c98cbf0906c007bf1d87cc02ea8a230eac13c 100644 (file)
@@ -85,7 +85,6 @@ config DRM_KUNIT_TEST
 
 config DRM_TTM_KUNIT_TEST
        tristate "KUnit tests for TTM" if !KUNIT_ALL_TESTS
-       default n
        depends on DRM && KUNIT && MMU && (UML || COMPILE_TEST)
        select DRM_TTM
        select DRM_BUDDY