RE: [PATCH] drm/amd/amdxcp: Fix warnings

2024-05-05 Thread Zhang, Hawking
[AMD Official Use Only - General] Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: Lazar, Lijo Sent: Monday, May 6, 2024 11:31 To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Deucher, Alexander ; kernel test robot Subject: [PATCH] drm/amd/amdxcp: Fix

[PATCH] drm/amd/amdxcp: Fix warnings

2024-05-05 Thread Lijo Lazar
Range of possible values of pdev_num is 0-63. Use int8_t as data type. That also fixes below warnings: >> drivers/gpu/drm/amd/amdxcp/amdgpu_xcp_drv.c:59:58: warning: '%d' >> directive output may be truncated writing between 1 and 11 bytes into >> a region of size 9 [-Wformat-truncation=] 59