Re: [PATCH] amdgpu: Adjust kmalloc_array calls for new -Walloc-size

2023-11-06 Thread Alex Deucher
Applied. Thanks! Alex On Sun, Nov 5, 2023 at 11:07 AM Sam James wrote: > > GCC 14 introduces a new -Walloc-size included in -Wextra which errors out > on various files in drivers/gpu/drm/amd/amdgpu like: > ``` > amdgpu_amdkfd_gfx_v8.c:241:15: error: allocation of insufficient size ‘4’ for >

[PATCH] amdgpu: Adjust kmalloc_array calls for new -Walloc-size

2023-11-05 Thread Sam James
GCC 14 introduces a new -Walloc-size included in -Wextra which errors out on various files in drivers/gpu/drm/amd/amdgpu like: ``` amdgpu_amdkfd_gfx_v8.c:241:15: error: allocation of insufficient size ‘4’ for type ‘uint32_t[2]’ {aka ‘unsigned int[2]'} with size ‘8’ [-Werror=alloc-size] ``` This