Skip to contentSkip to conversation

drm/shmem_helper: Fix kernel-doc name of __drm_gem_shmem_free_sgt_locked

PATCH In review Ravin Chokshi 2 participants 3 messages Nov 1 – Nov 7

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/shmem_helper: Fix kernel-doc name of __drm_gem_shmem_free_sgt_locked

The kernel-doc comment names __drm_gem_shmem_release_sgt_locked(), but the function it describes is __drm_gem_shmem_free_sgt_locked(). Update the comment to use the real name, which also fixes the kernel-doc warning about the prototype not matching.

Fixes b78dab829760 ("drm/gem/shmem: Introduce __drm_gem_shmem_free_sgt_locked()")
---
 drivers/gpu/drm/drm_gem_shmem_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_gem_shmem_helper.c +1 -1
index d654a22a30de..6ec273f0849e 100644
@@ -159,7 +159,7 @@ struct drm_gem_shmem_object *drm_gem_shmem_create(struct drm_device *dev, size_t
 EXPORT_SYMBOL_GPL(drm_gem_shmem_create);
 
 /**
- * __drm_gem_shmem_release_sgt_locked - Unpin and DMA unmap pages, and release the
+ * __drm_gem_shmem_free_sgt_locked - Unpin and DMA unmap pages, and release the
  * cached scatter/gather table for an shmem GEM object.
  * @shmem: shmem GEM object
  *
Signature · 1 line
2.55.0
#1 lore raw
Quoted 7 lines · Ravin Chokshi

The kernel-doc comment names __drm_gem_shmem_release_sgt_locked(), but the function it describes is __drm_gem_shmem_free_sgt_locked(). Update the comment to use the real name, which also fixes the kernel-doc warning about the prototype not matching.

Fixes b78dab829760 ("drm/gem/shmem: Introduce __drm_gem_shmem_free_sgt_locked()")

This is a duplicate of a patch I sent a while back [1].

[1] https://lore.kernel.org/all/[email protected]/