aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2021-03-22 11:55:25 +0000
committerIngo Molnar <[email protected]>2021-03-22 21:07:09 +0000
commit6d48b7912cc72275dc7c59ff961c8bac7ef66a92 (patch)
tree7393b97b654ecbeffded8d859ffe1e5a66748cc2 /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
parentlockdep: Add a missing initialization hint to the "INFO: Trying to register n... (diff)
downloadkernel-6d48b7912cc72275dc7c59ff961c8bac7ef66a92.tar.gz
kernel-6d48b7912cc72275dc7c59ff961c8bac7ef66a92.zip
lockdep: Address clang -Wformat warning printing for %hd
Clang doesn't like format strings that truncate a 32-bit value to something shorter: kernel/locking/lockdep.c:709:4: error: format specifies type 'short' but the argument has type 'int' [-Werror,-Wformat] In this case, the warning is a slightly questionable, as it could realize that both class->wait_type_outer and class->wait_type_inner are in fact 8-bit struct members, even though the result of the ?: operator becomes an 'int'. However, there is really no point in printing the number as a 16-bit 'short' rather than either an 8-bit or 32-bit number, so just change it to a normal %d. Fixes: de8f5e4f2dc1 ("lockdep: Introduce wait-type checks") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c')
0 files changed, 0 insertions, 0 deletions