summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2026-07-13 11:18:40 -0600
committerAlex Deucher <alexander.deucher@amd.com>2026-07-28 18:38:17 -0400
commit957f52eb5c13b5eba5de9df3a71bb1a154aac8fa (patch)
tree0b355ff071a55e8ef00ff616d7d30d7af5b97b01
parent7b5e55ba1dbfd5f3e89ebb7111d49df5282506c5 (diff)
downloadlinux-next-957f52eb5c13b5eba5de9df3a71bb1a154aac8fa.tar.gz
linux-next-957f52eb5c13b5eba5de9df3a71bb1a154aac8fa.zip
drm/amd/display: Fix missing dc_3dlut forward declaration
[WHY] The __set_colorop_3dlut() prototype in the KUnit-test section of amdgpu_dm_color.h references struct dc_3dlut, but no forward declaration for that struct exists in the header. The forward declaration was originally present but was repurposed into struct dc_plane_cm when the adjacent amdgpu_dm_atomic_lut3d() prototype was updated, leaving __set_colorop_3dlut() without a declaration for struct dc_3dlut. [HOW] Add back forward declaration of struct dc_3dlut alongside the other forward declarations at the top of the header. Fixes: b008c67efb36 ("drm/amd/display: Introduce dc_plane_cm and migrate surface update color path") Cc: Alex Hung <alex.hung@amd.com> Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Wayne Lin <wayne.lin@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/amdgpu_dm_color.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.h
index 1a8b06bdaf44..cec23a020c3d 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.h
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.h
@@ -44,6 +44,7 @@ struct dc_plane_state;
struct fixed31_32;
struct tetrahedral_params;
struct dc_transfer_func;
+struct dc_3dlut;
#if IS_ENABLED(CONFIG_DRM_AMD_DC_KUNIT_TEST)
/*