Skip to contentSkip to conversation

drm/gpuvm: Fix kernel-doc formatting and typo in drm_gpuvm_sm_map_exec_lock

PATCH New Bala-Vignesh-Reddy 1 participant 1 message Aug 3, 2025

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

PATCH 1/1 drm/gpuvm: Fix kernel-doc formatting and typo in drm_gpuvm_sm_map_exec_lock

Add .. code-block:: c directive to resolve Sphinx parsing issues like "unexpected indentation" and "definition list ends without a blank line" during make htmldocs.

Also corrected a typo in the return section from "negative error codec" to "negative error code".

---
 drivers/gpu/drm/drm_gpuvm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_gpuvm.c +3 -1
index bbc7fecb6f4a..fb46f531fe7d 100644
@@ -2432,6 +2432,8 @@ static const struct drm_gpuvm_ops lock_ops = {
  *
  * The expected usage is:
  *
+ * .. code-block:: c
+ *
  *    vm_bind {
  *        struct drm_exec exec;
  *
@@ -2473,7 +2475,7 @@ static const struct drm_gpuvm_ops lock_ops = {
  *    required without the earlier DRIVER_OP_MAP.  This is safe because we've
  *    already locked the GEM object in the earlier DRIVER_OP_MAP step.
  *
- * Returns: 0 on success or a negative error codec
+ * Returns: 0 on success or a negative error code
  */
 int
 drm_gpuvm_sm_map_exec_lock(struct drm_gpuvm *gpuvm,
Signature · 1 line
2.43.0