Skip to contentSkip to conversation

drm/exec: Match the drm_exec_retry() kernel-doc to its parameter name

PATCH In review Karl Mehltretter 3 participants 3 messages Sep 7

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

PATCH 1/1 drm/exec: Match the drm_exec_retry() kernel-doc to its parameter name

Commit bba175a2d4be ("drm/exec, drm/xe: Avoid abusing the drm_exec retry pointer") added drm_exec_retry() as a macro whose parameter is _exec, with a kernel-doc that says @exec, so kernel-doc reports both an excess and a missing parameter on every docs build.

Say @_exec.

Fixes bba175a2d4be ("drm/exec, drm/xe: Avoid abusing the drm_exec retry pointer")
Assisted-by LLM
---
 include/drm/drm_exec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_exec.h +1 -1
index cc2937185a9f..ae1d074ade5a 100644
@@ -150,7 +150,7 @@ static inline bool drm_exec_is_contended(struct drm_exec *exec)
 
 /**
  * drm_exec_retry() - Unconditionally restart the loop to grab all locks.
- * @exec: drm_exec object
+ * @_exec: drm_exec object
  *
  * Unconditionally retry the loop to lock all objects. For consistency,
  * the exec object needs to be newly initialized.
Signature · 1 line
2.53.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Karl Mehltretter

Commit bba175a2d4be ("drm/exec, drm/xe: Avoid abusing the drm_exec retry pointer") added drm_exec_retry() as a macro whose parameter is _exec, with a kernel-doc that says @exec, so kernel-doc reports both an
excess and a missing parameter on every docs build.

Quoted 6 lines

Say @_exec.

Fixes bba175a2d4be ("drm/exec, drm/xe: Avoid abusing the drm_exec

retry pointer")

Assisted-by LLM
Quoted 20 lines

---
 include/drm/drm_exec.h | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_exec.h +0 -0
index cc2937185a9f..ae1d074ade5a 100644
@@ -150,7 +150,7 @@ static inline bool drm_exec_is_contended(struct
 drm_exec *exec)


 /**
  * drm_exec_retry() - Unconditionally restart the loop to grab all locks.
- * @exec: drm_exec object
+ * @_exec: drm_exec object
  *
  * Unconditionally retry the loop to lock all objects. For consistency,
  * the exec object needs to be newly initialized.

Reviewed-by on v1 1/1
#2 lore raw
In reply to Karl Mehltretter
Quoted 10 lines · Karl Mehltretter

Commit bba175a2d4be ("drm/exec, drm/xe: Avoid abusing the drm_exec retry pointer") added drm_exec_retry() as a macro whose parameter is _exec, with a kernel-doc that says @exec, so kernel-doc reports both an excess and a missing parameter on every docs build.

Say @_exec.

Fixes bba175a2d4be ("drm/exec, drm/xe: Avoid abusing the drm_exec retry pointer")
Assisted-by LLM

I would rather rename the _exec to exec for consistency with the other macros, but either way is fine with me.

I assume you don't have commit rights to drm-misc-next?

Regards,
Christian.

Quoted 20 lines
---
 include/drm/drm_exec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_exec.h +1 -2
index cc2937185a9f..ae1d074ade5a 100644
@@ -150,7 +150,7 @@ static inline bool drm_exec_is_contended(struct drm_exec *exec)
 
 /**
  * drm_exec_retry() - Unconditionally restart the loop to grab all locks.
- * @exec: drm_exec object
+ * @_exec: drm_exec object
  *
  * Unconditionally retry the loop to lock all objects. For consistency,
  * the exec object needs to be newly initialized.
--

2.53.0