]> git.hungrycats.org Git - linux/commitdiff
drm/amd/display: Enable warnings as errors for KUnit tests
authorAlex Hung <alex.hung@amd.com>
Wed, 27 May 2026 23:35:47 +0000 (17:35 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jun 2026 20:09:27 +0000 (16:09 -0400)
[WHAT]
Add CONFIG_WERROR=y to .kunitconfig to treat compiler warnings
as errors during KUnit builds, ensuring warnings are caught
early.

Assisted-by: Copilot:Claude-Opus-4.6
Reviewed-by: Ray Wu <ray.wu@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/tests/.kunitconfig

index bd1bf8d959f930733ebec16eed05300ad71ca9d9..1e93bd8b44ce22502ac1fe0268748233367ef5e4 100644 (file)
@@ -15,6 +15,9 @@ CONFIG_I2C=y
 CONFIG_POWER_SUPPLY=y
 CONFIG_CRC16=y
 
+# Treat warnings as errors
+CONFIG_WERROR=y
+
 # GCOV Coverage - see tools/testing/kunit/configs/coverage_uml.config
 CONFIG_DEBUG_KERNEL=y
 CONFIG_DEBUG_INFO=y