summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c
diff options
context:
space:
mode:
authorJosip Pavic <Josip.Pavic@amd.com>2022-09-08 12:01:41 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-09-19 15:15:30 -0400
commitca86bbdd9b47464d78ae6af565a6e78c6e4e2fbd (patch)
tree9ee862b6c656a45d38e66c2b59005cd0abf6b2c6 /drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c
parent63423cf109d8308faf5d5946b1f57f5b0d6ae8f6 (diff)
downloadlinux-stable-ca86bbdd9b47464d78ae6af565a6e78c6e4e2fbd.tar.gz
linux-stable-ca86bbdd9b47464d78ae6af565a6e78c6e4e2fbd.tar.bz2
linux-stable-ca86bbdd9b47464d78ae6af565a6e78c6e4e2fbd.zip
drm/amd/display: do not compare integers of different widths
[Why & How] Increase width of some variables to avoid comparing integers of different widths Reviewed-by: Alvin Lee <alvin.lee2@amd.com> Acked-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Josip Pavic <Josip.Pavic@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c
index 5490b3705b41..160aefaac173 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c
@@ -265,7 +265,8 @@ void dcn32_determine_det_override(struct dc *dc,
display_e2e_pipe_params_st *pipes,
uint8_t *is_pipe_split_expected)
{
- uint8_t i, j, pipe_plane_count, stream_segments, plane_segments, pipe_segments[MAX_PIPES] = {0};
+ uint32_t i, j;
+ uint8_t pipe_plane_count, stream_segments, plane_segments, pipe_segments[MAX_PIPES] = {0};
uint8_t pipe_counted[MAX_PIPES] = {0};
uint8_t pipe_cnt = 0;
struct dc_plane_state *current_plane = NULL;