diff options
| author | Srinivasan Shanmugam <[email protected]> | 2023-05-19 04:55:28 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-09 14:44:30 +0000 |
| commit | 1893549af62135c788a66e7ff27c81459c532fb2 (patch) | |
| tree | 755969a0700798b1178c3e62d4e9b30c62ec0008 /drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c | |
| parent | drm/amdgpu: Fix unused amdgpu_acpi_get_numa_info function in amdgpu_acpi_get_... (diff) | |
| download | kernel-1893549af62135c788a66e7ff27c81459c532fb2.tar.gz kernel-1893549af62135c788a66e7ff27c81459c532fb2.zip | |
drm/amdgpu: Fix uninitialized variable in gfxhub_v1_2_xcp_resume
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c:657:6: error: variable 'ret' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
if (!amdgpu_sriov_vf(adev))
^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c:660:9: note: uninitialized use occurs here
return ret;
^~~
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c:657:2: note: remove the 'if' if its condition is always true
if (!amdgpu_sriov_vf(adev))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c:648:9: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
1 error generated.
Cc: Luben Tuikov <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Christian König <[email protected]>
Cc: Lijo Lazar <[email protected]>
Cc: Hawking Zhang <[email protected]>
Signed-off-by: Srinivasan Shanmugam <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c')
0 files changed, 0 insertions, 0 deletions
