[PATCH] amd/amdkfd:Fix the return value in kfd_process_queue_manager

Ma, Jun majun at amd.com
Thu Jan 20 01:38:26 UTC 2022


Yes, return is not necessary here.
I'll apply this patch on dkms-staging to fix the compile
error.

On 1/20/2022 1:10 AM, Deucher, Alexander wrote:
> [AMD Official Use Only]
> 
> 
> You can just drop the whole line.
> 
> Alex
> 
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> *From:* amd-gfx <amd-gfx-bounces at lists.freedesktop.org> on behalf of majun <majun at amd.com>
> *Sent:* Wednesday, January 19, 2022 7:57 AM
> *To:* amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
> *Subject:* [PATCH] amd/amdkfd:Fix the return value in kfd_process_queue_manager
>  
> Change the return value of set_queue_properties_from_criu()
> 
> Signed-off-by: majun <majun at amd.com>
> Change-Id: I11362eb76eee84e64c5207c24a2b78141f62e63a
> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
> index ec62897914da..f70e972d1d33 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
> @@ -826,7 +826,7 @@ static void set_queue_properties_from_criu(struct queue_properties *qp,
>          qp->type = q_data->type;
>          qp->format = q_data->format;
>  
> -       return 0;
> +       return;
>  }
>  
>  
> -- 
> 2.25.1
> 


More information about the amd-gfx mailing list