mirror_ubuntu-kernels/drivers/gpu/drm/amd/display
Guenter Roeck 5760dcb953 drm/amd/display: Fix build warnings
Fix the following build warnings.

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:
	In function ‘dm_update_mst_vcpi_slots_for_dsc’:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6242:46:
	warning: variable ‘old_con_state’ set but not used

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:
	In function ‘amdgpu_dm_commit_cursors’:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7709:44:
	warning: variable ‘new_plane_state’ set but not used

The variables were introduced to be used in iterators, but not used.
Use other iterators which don't require the unused variables.

Fixes: 8ad278062d ("drm/amd/display: Disable cursors before disabling planes")
Fixes: 29b9ba74f6 ("drm/amd/display: Recalculate VCPI slots for new DSC connectors")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-05-10 18:06:42 -04:00
..
amdgpu_dm drm/amd/display: Fix build warnings 2021-05-10 18:06:42 -04:00
dc drm/amd/display: 3.2.133 2021-04-28 23:35:51 -04:00
dmub drm/amd/display: [FW Promotion] Release 0.0.63 2021-04-28 23:35:50 -04:00
include drm/amd/display: Use pr_debug in DM to prevent dmesg flooding 2021-04-09 16:49:32 -04:00
modules drm/amd/display: avoid to authentication when DEVICE_COUNT=0 2021-04-28 23:35:50 -04:00
Kconfig drm/amd/display: Support crc on specific region 2021-03-05 15:11:47 -05:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_DMUB guards 2019-11-13 15:29:42 -05:00
TODO