Skip to contentSkip to conversation

drm/vkms: Compile all tests with CONFIG_DRM_VKMS_KUNIT_TEST

PATCH Applied Maíra Canal 3 participants 3 messages Jun 11, 2025 – Jun 13, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/vkms: Compile all tests with CONFIG_DRM_VKMS_KUNIT_TEST

The Kconfig option CONFIG_DRM_VKMS_KUNIT_TESTS does not exist. However, the VKMS format tests use such an option for compilation, meaning that they are not compiled at all.

Use the Kconfig option CONFIG_DRM_VKMS_KUNIT_TEST to compile all VKMS KUnit tests.

Fixes 3e897853debd ("drm/vkms: Create KUnit tests for YUV conversions")
---
 drivers/gpu/drm/vkms/tests/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/vkms/tests/Makefile +5 -2
index 0ee077942ae2..5750f0bd9d40 100644
@@ -1,4 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 
-obj-$(CONFIG_DRM_VKMS_KUNIT_TEST) += vkms_config_test.o
-obj-$(CONFIG_DRM_VKMS_KUNIT_TESTS) += vkms_format_test.o
+vkms-kunit-tests-y := \
+	vkms_config_test.o \
+	vkms_format_test.o
+
+obj-$(CONFIG_DRM_VKMS_KUNIT_TEST) += vkms-kunit-tests.o
Signature · 1 line
2.49.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Maíra,

Quoted 9 lines · Maíra Canal

The Kconfig option CONFIG_DRM_VKMS_KUNIT_TESTS does not exist. However, the VKMS format tests use such an option for compilation, meaning that they are not compiled at all.

Use the Kconfig option CONFIG_DRM_VKMS_KUNIT_TEST to compile all VKMS KUnit tests.

Fixes 3e897853debd ("drm/vkms: Create KUnit tests for YUV conversions")

Good catch!

Quoted 21 lines
---
 drivers/gpu/drm/vkms/tests/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/vkms/tests/Makefile +5 -2
index 0ee077942ae2..5750f0bd9d40 100644
@@ -1,4 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 
-obj-$(CONFIG_DRM_VKMS_KUNIT_TEST) += vkms_config_test.o
-obj-$(CONFIG_DRM_VKMS_KUNIT_TESTS) += vkms_format_test.o
+vkms-kunit-tests-y := \
+	vkms_config_test.o \
+	vkms_format_test.o
+
+obj-$(CONFIG_DRM_VKMS_KUNIT_TEST) += vkms-kunit-tests.o
Signature · 1 line
2.49.0
maintainer Applied
#2 lore raw
In reply to Maíra Canal
Quoted 8 lines · Maíra Canal

The Kconfig option CONFIG_DRM_VKMS_KUNIT_TESTS does not exist. However, the VKMS format tests use such an option for compilation, meaning that they are not compiled at all.

Use the Kconfig option CONFIG_DRM_VKMS_KUNIT_TEST to compile all VKMS KUnit tests.

[...]

Applied, thanks!

[1/1] drm/vkms: Compile all tests with CONFIG_DRM_VKMS_KUNIT_TEST

      commit: 60ba94338047bb5410a3626ced3380afe9285ed8

Best regards,

Signature · 1 line
Louis Chauvet <[email protected]>