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

Yussef Fatayer yusseffatayer at gmail.com
Tue Mar 14 04:20:47 UTC 2023


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>
---
 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
  *
-- 
2.39.2



More information about the dri-devel mailing list