diff options
author | 2021-05-29 17:28:16 +0800 | |
---|---|---|
committer | 2021-06-01 22:55:39 -0400 | |
commit | a6c3c37b661dae8f34cb7ed90aa3f88372cb1c75 (patch) | |
tree | 7c26adaf97bcf72ca89da4c7582ebfa5086fb269 /drivers/gpu/drm/amd/amdgpu/atom.c | |
parent | drm/amd/display: Avoid HDCP over-read and corruption (diff) | |
download | linux-dev-a6c3c37b661dae8f34cb7ed90aa3f88372cb1c75.tar.xz linux-dev-a6c3c37b661dae8f34cb7ed90aa3f88372cb1c75.zip |
drm/amd/display: fix gcc set but not used warning of variable 'old_plane_state'
define a new macro for_each_new_plane_in_state_reverse to replace
for_each_oldnew_plane_in_state_reverse, so that the unused variable
'old_plane_state' can be removed.
Fix gcc warning:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:10066:26: warning:
variable ‘old_plane_state’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions