Re: [PATCH][next] drm/amdgpu: Use struct_size() helper in kmalloc()

2020-10-09 Thread Christian König
Am 08.10.20 um 16:23 schrieb Gustavo A. R. Silva: Make use of the new struct_size() helper instead of the offsetof() idiom. Signed-off-by: Gustavo A. R. Silva Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 3 +-- 1 file changed, 1 insertion(+), 2

Re: [PATCH][next] drm/amdgpu: Use struct_size() helper in kmalloc()

2020-10-08 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Oct 8, 2020 at 10:17 AM Gustavo A. R. Silva wrote: > > Make use of the new struct_size() helper instead of the offsetof() idiom. > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 3 +-- > 1 file changed, 1

[PATCH][next] drm/amdgpu: Use struct_size() helper in kmalloc()

2020-10-08 Thread Gustavo A. R. Silva
Make use of the new struct_size() helper instead of the offsetof() idiom. Signed-off-by: Gustavo A. R. Silva --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c