[PATCH] drm/ttm: Remove comment about kfree for bo->destroy

Kenjiro Nakayama nakayamakenjiro at gmail.com
Tue Oct 24 10:08:53 UTC 2023


Since the kfree handling was removed[1], this patch removes the
instruction comment.

[1] 3507932390bb drm/ttm: move default BO destructor into VMWGFX v2

Signed-off-by: Kenjiro Nakayama <nakayamakenjiro at gmail.com>
---
 drivers/gpu/drm/ttm/ttm_bo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index e58b7e249816..e0068f17fc0a 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -936,7 +936,7 @@ EXPORT_SYMBOL(ttm_bo_validate);
  * @ctx: TTM operation context for memory allocation.
  * @sg: Scatter-gather table.
  * @resv: Pointer to a dma_resv, or NULL to let ttm allocate one.
- * @destroy: Destroy function. Use NULL for kfree().
+ * @destroy: Destroy function.
  *
  * This function initializes a pre-allocated struct ttm_buffer_object.
  * As this object may be part of a larger structure, this function,
@@ -1031,7 +1031,7 @@ EXPORT_SYMBOL(ttm_bo_init_reserved);
  * GEM user interface.
  * @sg: Scatter-gather table.
  * @resv: Pointer to a dma_resv, or NULL to let ttm allocate one.
- * @destroy: Destroy function. Use NULL for kfree().
+ * @destroy: Destroy function.
  *
  * This function initializes a pre-allocated struct ttm_buffer_object.
  * As this object may be part of a larger structure, this function,
-- 
2.41.0



More information about the dri-devel mailing list