drm/amd/display: Silence type mismatch warning

[Why&How]
Resolve type mismatch warnings by ensuring loop counters and compared
values use matching unsigned types (size_t or int) in array iteration.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Gaghik Khachatrian <gaghik.khachatrian@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Gaghik Khachatrian 2026-02-16 11:26:58 -05:00 committed by Alex Deucher
parent cf1b9cbb59
commit 44081e86fc

View File

@ -3064,7 +3064,7 @@ struct surface_update_descriptor dc_check_update_surfaces_for_stream(
{
if (stream_update)
stream_update->stream->update_flags.raw = 0;
for (size_t i = 0; i < surface_count; i++)
for (int i = 0; i < surface_count; i++)
updates[i].surface->update_flags.raw = 0;
return check_update_surfaces_for_stream(check_config, updates, surface_count, stream_update);