[PATCH] drm/ttm: Fix excess doc paramater warning in ttm_bo_mem_space

Maíra Canal mairacanal at riseup.net
Wed Mar 15 11:07:41 UTC 2023


On 3/14/23 01:20, Yussef Fatayer wrote:
> Rename documentation parameter from "proposed_placement" to
> "placement" to avoid the warnings of function parameter not
> described and excess function parameter.
> 
> Signed-off-by: Yussef Fatayer <yusseffatayer at gmail.com>

Reviewed-by: Maíra Canal <mairacanal at riseup.net>

Best Regards,
- Maíra Canal

> ---
>   drivers/gpu/drm/ttm/ttm_bo.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
> index 459f1b4440da..8284f4d0ab21 100644
> --- a/drivers/gpu/drm/ttm/ttm_bo.c
> +++ b/drivers/gpu/drm/ttm/ttm_bo.c
> @@ -748,7 +748,7 @@ static int ttm_bo_mem_force_space(struct ttm_buffer_object *bo,
>    *
>    * @bo: Pointer to a struct ttm_buffer_object. the data of which
>    * we want to allocate space for.
> - * @proposed_placement: Proposed new placement for the buffer object.
> + * @placement: Proposed new placement for the buffer object.
>    * @mem: A struct ttm_resource.
>    * @ctx: if and how to sleep, lock buffers and alloc memory
>    *


More information about the dri-devel mailing list