summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2026-09-10 10:28:10 -0600
committerAlex Deucher <alexander.deucher@amd.com>2026-09-23 13:45:57 -0400
commitfa165dd5903270579577ffb48aedf92b49178a03 (patch)
tree321e2fd95d09bd9236a4a7e2ef11b8ce57c5ee8b
parent20f1647b4c3af9a1a6ea8d50c90a001aba1fb63a (diff)
downloadlinux-fa165dd5903270579577ffb48aedf92b49178a03.tar.gz
linux-fa165dd5903270579577ffb48aedf92b49178a03.zip
drm/amd/display: Fix KUnit helper warnings
[WHY] The real connector fixture lacks atomic state callbacks required by DRM connector initialization. [HOW] Install the DRM atomic connector duplicate and destroy state helpers alongside the existing reset callback. Assisted-by: Copilot:GPT-6-Astra Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: George Zhang <george.zhang@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_helpers_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_helpers_test.c b/drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_helpers_test.c
index 09eba15c2705..d37fe26eecea 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_helpers_test.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_helpers_test.c
@@ -4293,6 +4293,8 @@ static void dm_test_is_dp_sink_present_queries_link_service(struct kunit *test)
*/
static const struct drm_connector_funcs dm_test_connector_funcs = {
.reset = drm_atomic_helper_connector_reset,
+ .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
+ .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
};
static struct amdgpu_dm_connector *dm_test_alloc_real_connector(struct kunit *test,