diff options
| author | Wayne Lin <[email protected]> | 2021-10-08 07:08:37 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-10-08 17:20:14 +0000 |
| commit | 097cbf2648e08ef7f24d484ce576902d6f86af42 (patch) | |
| tree | ee818015d51fb1b95eaaa98d86922e59c4053df9 /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | |
| parent | drm/amdgpu: add missing case for HDP for renoir (diff) | |
| download | kernel-097cbf2648e08ef7f24d484ce576902d6f86af42.tar.gz kernel-097cbf2648e08ef7f24d484ce576902d6f86af42.zip | |
drm/amd/display: Fix Werror when building
[Why & How]
Got Werror when building with Clang-13:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dpia.c:195:2:
error: variable 'ts' is used uninitialized whenever switch default is
taken [-Werror,-Wsometimes-uninitialized]
default:
^~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dpia.c:200:9:
note: uninitialized use occurs here
return ts;
^~
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dpia.c:180:2:
note: variable 'ts' is declared here
enum dpia_set_config_ts ts;
^
1 error generated.
Fix it.
Reported-by: Mike Lothian <[email protected]>
Signed-off-by: Wayne Lin <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
0 files changed, 0 insertions, 0 deletions
