diff options
| author | Mike Lothian <[email protected]> | 2022-05-04 23:24:14 +0100 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-05-05 16:50:17 -0400 |
| commit | 0c1c5e4aaef8e3ca06aa0217a1773bd6f65d8e2a (patch) | |
| tree | d8e3f292c510973d8a90ea469fd6fbb5824a781a /tools/perf/scripts/python | |
| parent | 8fab8e2ecc7df1cb42c80af40e7b6069debef451 (diff) | |
drm/amdgpu/gfx11: Avoid uninitialised variable 'index'
This stops clang complaining:
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:376:6: warning: variable 'index' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (ring->is_mes_queue) {
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:433:30: note: uninitialized use occurs here
amdgpu_device_wb_free(adev, index);
^~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:376:2: note: remove the 'if' if its condition is always false
if (ring->is_mes_queue) {
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:364:16: note: initialize the variable 'index' to silence this warning
unsigned index;
^
= 0
Signed-off-by: Mike Lothian <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions