]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Silence type mismatch warning
authorGaghik Khachatrian <gaghik.khachatrian@amd.com>
Mon, 16 Feb 2026 16:26:58 +0000 (11:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Feb 2026 19:39:31 +0000 (14:39 -0500)
[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>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 4c5ecbb97d5b058f6df2bbd8682d406ef512e8bc..76b5be1371edfc3b82c8542ee789b5dba2972935 100644 (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);