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

drm/amd/display: do not compare integers of different widths

[Why & How]
Increase width of some variables to avoid comparing integers of
different widths

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Josip Pavic <Josip.Pavic@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Josip Pavic and committed by
Alex Deucher
9506b8d9 d715c9a2

+2 -2
+2 -2
drivers/gpu/drm/amd/display/dc/core/dc_link.c
··· 4744 4744 void dc_get_cur_link_res_map(const struct dc *dc, uint32_t *map) 4745 4745 { 4746 4746 struct dc_link *link; 4747 - uint8_t i; 4747 + uint32_t i; 4748 4748 uint32_t hpo_dp_recycle_map = 0; 4749 4749 4750 4750 *map = 0; ··· 4785 4785 void dc_restore_link_res_map(const struct dc *dc, uint32_t *map) 4786 4786 { 4787 4787 struct dc_link *link; 4788 - uint8_t i; 4788 + uint32_t i; 4789 4789 unsigned int available_hpo_dp_count; 4790 4790 uint32_t hpo_dp_recycle_map = (*map & LINK_RES_HPO_DP_REC_MAP__MASK) 4791 4791 >> LINK_RES_HPO_DP_REC_MAP__SHIFT;