diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-03-22 12:54:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-11 14:47:30 +0200 |
commit | f26f33a40952a7d6a5ec7a361d495a1163d3aba1 (patch) | |
tree | 4ad4845e8b2e0554eb316615af181d9e3a17a6fd /Kbuild | |
parent | a98a9004885399631d158cd1cb0ce4d4323cc988 (diff) | |
download | kernel_replicant_linux-f26f33a40952a7d6a5ec7a361d495a1163d3aba1.tar.gz kernel_replicant_linux-f26f33a40952a7d6a5ec7a361d495a1163d3aba1.tar.bz2 kernel_replicant_linux-f26f33a40952a7d6a5ec7a361d495a1163d3aba1.zip |
amdgpu: avoid incorrect %hu format string
[ Upstream commit 7d98d416c2cc1c1f7d9508e887de4630e521d797 ]
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 <christian.koenig@amd.com>
Reviewed-by: Tom Rix <trix@redhat.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions