Re: [PATCH v2] drm/amdkfd: Use memdup_user() rather than duplicating its implementation

2023-08-09 Thread Felix Kuehling
On 2023-08-09 01:30, Atul Raut wrote: To prevent its redundant implementation and streamline code, use memdup_user. This fixes warnings reported by Coccinelle: ./drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c:2811:13-20: WARNING opportunity for memdup_user Signed-off-by: Atul Raut

[PATCH v2] drm/amdkfd: Use memdup_user() rather than duplicating its implementation

2023-08-09 Thread Atul Raut
To prevent its redundant implementation and streamline code, use memdup_user. This fixes warnings reported by Coccinelle: ./drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c:2811:13-20: WARNING opportunity for memdup_user Signed-off-by: Atul Raut --- v1 -> v2 caller checks for errors, hen

Re: drm/amdkfd: Use memdup_user() rather than duplicating its

2023-08-08 Thread Atul Raut
Hello Felix, I appreciate the code review. Will correct theĀ  typo (seems to have appeared during patch creation following compilation). Shortly as the compilation is successful, V2 will be sent. -Atul On 8/8/23 15:47, Felix Kuehling wrote: On 2023-08-08 16:57, Atul Raut wrote: To prevent it

Re: drm/amdkfd: Use memdup_user() rather than duplicating its

2023-08-08 Thread Felix Kuehling
On 2023-08-08 16:57, Atul Raut wrote: To prevent its redundant implementation and streamline code, use memdup_user. This fixes warnings reported by Coccinelle: ./drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c:2811:13-20: WARNING opportunity for memdup_user Signed-off-by: Atul Raut ---

drm/amdkfd: Use memdup_user() rather than duplicating its

2023-08-08 Thread Atul Raut
To prevent its redundant implementation and streamline code, use memdup_user. This fixes warnings reported by Coccinelle: ./drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c:2811:13-20: WARNING opportunity for memdup_user Signed-off-by: Atul Raut --- drivers/gpu/drm/amd/amdkfd/kfd_device_q