Re: [PATCH] drm/amdgpu: Fix truncation issues in gfx_v9_0.c

2024-03-22 Thread Lazar, Lijo
On 3/22/2024 11:54 AM, Srinivasan Shanmugam wrote: > The size of fw_name is increased to ensure that it can accommodate > the maximum possible size of the string being written into it. > > Fixes the below with gcc W=1: > drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c: In function ‘gfx_v9_0_early_init’:

[PATCH] drm/amdgpu: Fix truncation issues in gfx_v9_0.c

2024-03-21 Thread Srinivasan Shanmugam
The size of fw_name is increased to ensure that it can accommodate the maximum possible size of the string being written into it. Fixes the below with gcc W=1: drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c: In function ‘gfx_v9_0_early_init’: drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:1255:52: warning: ‘%s’ dir