[PATCH v2] drm/amdgpu: Fix create_dmamap_sg_bo kdoc warnings

Felix Kuehling felix.kuehling at amd.com
Mon May 29 19:30:19 UTC 2023


On 2023-05-29 15:22, Srinivasan Shanmugam wrote:
> Fix the following gcc with W=1:
>
> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:292: warning: Cannot understand  * @create_dmamap_sg_bo: Creates a amdgpu_bo object to reflect information
>
> Cc: Felix Kuehling <felix.kuehling at amd.com>
> Cc: Christian König <christian.koenig at amd.com>
> Cc: Alex Deucher <alexander.deucher at amd.com>
> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam at amd.com>

Reviewed-by: Felix Kuehling <Felix.Kuehling at amd.com>


> ---
>
> v2:
>   - Fix "@create_dmamap_sg_bo:" format (Felix)
>
>   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
> index cd5d7a39ad0c..e73cbe126286 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
> @@ -292,8 +292,9 @@ void amdgpu_amdkfd_release_notify(struct amdgpu_bo *bo)
>   }
>   
>   /**
> - * @create_dmamap_sg_bo: Creates a amdgpu_bo object to reflect information
> + * create_dmamap_sg_bo() - Creates a amdgpu_bo object to reflect information
>    * about USERPTR or DOOREBELL or MMIO BO.
> + *
>    * @adev: Device for which dmamap BO is being created
>    * @mem: BO of peer device that is being DMA mapped. Provides parameters
>    *	 in building the dmamap BO


More information about the amd-gfx mailing list