drm/ttm/tests: Require MMU when testing
authorKarolina Stolarek <karolina.stolarek@intel.com>
Fri, 11 Aug 2023 11:36:49 +0000 (13:36 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 17 Aug 2023 13:05:51 +0000 (15:05 +0200)
Satisfy MMU dependency when testing TTM with KUnit. This fixes
compilation errors on platforms that don't select this option
by default.

Signed-off-by: Karolina Stolarek <karolina.stolarek@intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308110133.f0lhFwMV-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202308111032.enU8IisR-lkp@intel.com/
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230811113649.697886-1-karolina.stolarek@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
(cherry picked from commit 78f46ecd9be8ec85a177c15d6188e1555657ba86)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
drivers/gpu/drm/Kconfig

index 9d1f0e04fd565d9aeccbb953f6878d8a6feb222f..ab9ef1c2034912d8fc330f6009a81dc31759f5b5 100644 (file)
@@ -198,7 +198,7 @@ config DRM_TTM
 config DRM_TTM_KUNIT_TEST
         tristate "KUnit tests for TTM" if !KUNIT_ALL_TESTS
         default n
-        depends on DRM && KUNIT
+        depends on DRM && KUNIT && MMU
         select DRM_TTM
         select DRM_EXPORT_FOR_TESTS if m
         select DRM_KUNIT_TEST_HELPERS