aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2021-03-22 11:54:42 +0000
committerAlex Deucher <[email protected]>2021-04-09 20:42:20 +0000
commit7d98d416c2cc1c1f7d9508e887de4630e521d797 (patch)
tree07525114bdd0c2b1a4e9612ddb9654cffe22e51f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrivers: gpu: Remove duplicate include of amdgpu_hdp.h (diff)
downloadkernel-7d98d416c2cc1c1f7d9508e887de4630e521d797.tar.gz
kernel-7d98d416c2cc1c1f7d9508e887de4630e521d797.zip
amdgpu: avoid incorrect %hu format string
clang points out that the %hu format string does not match the type of the variables here: drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:263:7: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] version_major, version_minor); ^~~~~~~~~~~~~ include/drm/drm_print.h:498:19: note: expanded from macro 'DRM_ERROR' __drm_err(fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ Change it to a regular %u, the same way a previous patch did for another instance of the same warning. Reviewed-by: Christian König <[email protected]> Reviewed-by: Tom Rix <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions