[PATCH] drm/amdgpu: Fix ARM compilation warning
Deucher, Alexander
Alexander.Deucher at amd.com
Wed Feb 16 22:21:03 UTC 2022
[Public]
Acked-by: Alex Deucher <alexander.deucher at amd.co>
________________________________
From: Tuikov, Luben <Luben.Tuikov at amd.com>
Sent: Wednesday, February 16, 2022 5:08 PM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Cc: Tuikov, Luben <Luben.Tuikov at amd.com>; Deucher, Alexander <Alexander.Deucher at amd.com>; kbuild-all at lists.01.org <kbuild-all at lists.01.org>; linux-kernel at vger.kernel.org <linux-kernel at vger.kernel.org>; kernel test robot <lkp at intel.com>
Subject: [PATCH] drm/amdgpu: Fix ARM compilation warning
Fix this ARM warning:
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c:664:35: warning: format '%ld'
expects argument of type 'long int', but argument 4 has type 'size_t' {aka
'unsigned int'} [-Wformat=]
Cc: Alex Deucher <Alexander.Deucher at amd.com>
Cc: kbuild-all at lists.01.org
Cc: linux-kernel at vger.kernel.org
Reported-by: kernel test robot <lkp at intel.com>
Fixes: 7e60fbfbdc10a0 ("drm/amdgpu: Show IP discovery in sysfs")
Signed-off-by: Luben Tuikov <luben.tuikov at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
index ad2355b0037f52..6c3a3c74e0231f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
@@ -668,7 +668,7 @@ static int amdgpu_discovery_sysfs_ips(struct amdgpu_device *adev,
le16_to_cpu(ip->hw_id) != ii)
goto next_ip;
- DRM_DEBUG("match:%d @ ip_offset:%ld", ii, ip_offset);
+ DRM_DEBUG("match:%d @ ip_offset:%zu", ii, ip_offset);
/* We have a hw_id match; register the hw
* block if not yet registered.
base-commit: f723076ae13011a23d9a586899e38bc68feeb6b2
--
2.35.1.129.gb80121027d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20220216/4a7946b5/attachment.htm>
More information about the amd-gfx
mailing list