diff options
| author | Nathan Chancellor <[email protected]> | 2021-08-13 17:11:58 +0000 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2021-08-24 14:23:10 +0000 |
| commit | fb43ebc83e069625cfeeb2490efc3ffa0013bfa4 (patch) | |
| tree | 79b2de7b25087dded8d7b98b7f8e85c91a39e8fe /drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | |
| parent | drm/i915/gt: Potential error pointer dereference in pinned_context() (diff) | |
| download | kernel-fb43ebc83e069625cfeeb2490efc3ffa0013bfa4.tar.gz kernel-fb43ebc83e069625cfeeb2490efc3ffa0013bfa4.zip | |
drm/i915/selftest: Fix use of err in igt_reset_{fail, nop}_engine()
Clang warns:
In file included from drivers/gpu/drm/i915/gt/intel_reset.c:1514:
drivers/gpu/drm/i915/gt/selftest_hangcheck.c:465:62: warning: variable
'err' is uninitialized when used here [-Wuninitialized]
pr_err("[%s] Create context failed: %d!\n", engine->name, err);
^~~
...
drivers/gpu/drm/i915/gt/selftest_hangcheck.c:580:62: warning: variable
'err' is uninitialized when used here [-Wuninitialized]
pr_err("[%s] Create context failed: %d!\n", engine->name, err);
^~~
...
2 warnings generated.
This appears to be a copy and paste issue. Use ce directly using the %pe
specifier to pretty print the error code so that err is not used
uninitialized in these functions.
Fixes: 3a7b72665ea5 ("drm/i915/selftest: Bump selftest timeouts for hangcheck")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Nathan Chancellor <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Signed-off-by: Joonas Lahtinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit ac5a2dff428ab59b5c5bbb4b28311141aa461c07)
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c')
0 files changed, 0 insertions, 0 deletions
