Skip to contentSkip to conversation

drm/gpuvm: Fix names that do not exist in kernel-doc comments

PATCH New Karl Mehltretter 1 participant 1 message Sep 11

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

PATCH 1/1 drm/gpuvm: Fix names that do not exist in kernel-doc comments

The GPUVM documentation refers to drm_resv and drm_exec_prepare_object(), but the reservation object type is dma_resv and the locking helper is drm_exec_prepare_obj().

Use the existing names in the reservation object and map locking documentation.

Fixes bbe8458037e7 ("drm/gpuvm: add common dma-resv per struct drm_gpuvm")
Fixes 471920ce25d5 ("drm/gpuvm: Add locking helpers")
Assisted-by LLM
---
 drivers/gpu/drm/drm_gpuvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_gpuvm.c +2 -2
index d1c80ad3deadb7f2e78abf7e50e61ad085391e3f..c43708be348c3659bc7888c1aad25b470ff2cee0 100644
@@ -1051,7 +1051,7 @@ static const struct drm_gem_object_funcs drm_gpuvm_object_funcs = {
  * @drm: the drivers &drm_device
  *
  * Allocates a dummy &drm_gem_object which can be passed to drm_gpuvm_init() in
- * order to serve as root GEM object providing the &drm_resv shared across
+ * order to serve as root GEM object providing the &dma_resv shared across
  * &drm_gem_objects local to a single GPUVM.
  *
  * Returns: the &drm_gem_object on success, NULL on failure
@@ -2718,7 +2718,7 @@ static const struct drm_gpuvm_ops lock_ops = {
  * @req: ptr to drm_gpuvm_map_req struct
  *
  * This function locks (drm_exec_lock_obj()) objects that will be unmapped/
- * remapped, and locks+prepares (drm_exec_prepare_object()) objects that
+ * remapped, and locks+prepares (drm_exec_prepare_obj()) objects that
  * will be newly mapped.
  *
  * The expected usage is::