diff options
| author | Bhawanpreet Lakha <[email protected]> | 2021-01-20 17:23:06 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-02-09 20:17:15 +0000 |
| commit | 6eed1f3fba404dc0a1835c3a96694ea4152cd50e (patch) | |
| tree | b5a27b038e15c211a3440334e73b65331b12114e /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | |
| parent | Revert "drm/amd/display: fix unused variable warning" (diff) | |
| download | kernel-6eed1f3fba404dc0a1835c3a96694ea4152cd50e.tar.gz kernel-6eed1f3fba404dc0a1835c3a96694ea4152cd50e.zip | |
drm/amd/display: Fix unused variable warning
[Why]
The dm struct is only being used if DCN config is defined and this
causes a unused variable warning if DCN option is not set.
[How]
Remove the compile flag so the variable is used (there also seems to be
a duplicate guard due to a bad rebase) so remove the outer guard to fix
the warning.
Fixes this warning
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c: In function 'dm_set_vblank':
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:5380:33: warning: unused variable 'dm' [-Wunused-variable]
Fixes: 98ab5f3513f9 ("drm/amd/display: Fix deadlock during gpu reset v3")
Cc: Alex Deucher <[email protected]>
Cc: Nicholas Kazlauskas <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Bhawanpreet Lakha <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c')
0 files changed, 0 insertions, 0 deletions
