Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Gaghik Khachatrian and committed by
Alex Deucher
44081e86 cf1b9cbb

+1 -1
+1 -1
drivers/gpu/drm/amd/display/dc/core/dc.c
··· 3064 3064 { 3065 3065 if (stream_update) 3066 3066 stream_update->stream->update_flags.raw = 0; 3067 - for (size_t i = 0; i < surface_count; i++) 3067 + for (int i = 0; i < surface_count; i++) 3068 3068 updates[i].surface->update_flags.raw = 0; 3069 3069 3070 3070 return check_update_surfaces_for_stream(check_config, updates, surface_count, stream_update);