diff options
| author | Guenter Roeck <[email protected]> | 2021-04-21 16:18:02 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-05-10 22:06:42 +0000 |
| commit | 5760dcb953ee8fe0706b67498b6ca599d7f49111 (patch) | |
| tree | 2501bb5c772a2f5c6f54175ac69e68ba52508edc /drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c | |
| parent | drm/amd/amdgpu: Fix errors in documentation of function parameters (diff) | |
| download | kernel-5760dcb953ee8fe0706b67498b6ca599d7f49111.tar.gz kernel-5760dcb953ee8fe0706b67498b6ca599d7f49111.zip | |
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: 8ad278062de4e ("drm/amd/display: Disable cursors before disabling planes")
Fixes: 29b9ba74f6384 ("drm/amd/display: Recalculate VCPI slots for new DSC connectors")
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c')
0 files changed, 0 insertions, 0 deletions
