drm: fix dead default for DRM_TTM_KUNIT_TEST
Subsystems (2)
PATCH v2 1/1 drm: fix dead default for DRM_TTM_KUNIT_TEST
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.
---
v2: removed fixes tag
--- drivers/gpu/drm/Kconfig.debug | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/Kconfig.debug +0 -1
@@ -86,7 +86,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
Signature · 1 line
2.51.2
Quoted 10 lines · Julian Braha
The
DRM_TTM_KUNIT_TESTconfig option should default
toKUNIT_ALL_TESTSso that if all tests are enabled then it is included, but currently the 'defaultKUNIT_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 <[email protected]>
Reviewed and pushed to drm-misc-next.
Thanks,
Christian.
Quoted 21 lines
---
v2: removed fixes tag--- drivers/gpu/drm/Kconfig.debug | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/Kconfig.debug +0
-2@@ -86,7 +86,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 --2.51.2