<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#008000;margin:15pt;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Acked-by: Alex Deucher <alexander.deucher@amd.co><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Tuikov, Luben <Luben.Tuikov@amd.com><br>
<b>Sent:</b> Wednesday, February 16, 2022 5:08 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Tuikov, Luben <Luben.Tuikov@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com>; kbuild-all@lists.01.org <kbuild-all@lists.01.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org>; kernel test robot <lkp@intel.com><br>
<b>Subject:</b> [PATCH] drm/amdgpu: Fix ARM compilation warning</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Fix this ARM warning:<br>
<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c:664:35: warning: format '%ld'<br>
expects argument of type 'long int', but argument 4 has type 'size_t' {aka<br>
'unsigned int'} [-Wformat=]<br>
<br>
Cc: Alex Deucher <Alexander.Deucher@amd.com><br>
Cc: kbuild-all@lists.01.org<br>
Cc: linux-kernel@vger.kernel.org<br>
Reported-by: kernel test robot <lkp@intel.com><br>
Fixes: 7e60fbfbdc10a0 ("drm/amdgpu: Show IP discovery in sysfs")<br>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com><br>
---<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c<br>
index ad2355b0037f52..6c3a3c74e0231f 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c<br>
@@ -668,7 +668,7 @@ static int amdgpu_discovery_sysfs_ips(struct amdgpu_device *adev,<br>
le16_to_cpu(ip->hw_id) != ii)<br>
goto next_ip;<br>
<br>
- DRM_DEBUG("match:%d @ ip_offset:%ld", ii, ip_offset);<br>
+ DRM_DEBUG("match:%d @ ip_offset:%zu", ii, ip_offset);<br>
<br>
/* We have a hw_id match; register the hw<br>
* block if not yet registered.<br>
<br>
base-commit: f723076ae13011a23d9a586899e38bc68feeb6b2<br>
-- <br>
2.35.1.129.gb80121027d<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>