Skip to contentSkip to conversation

drm/scheduler: fix kernel-doc warning for drm_sched_job_done()

PATCH Applied Yujie Liu 2 participants 3 messages Feb 27 – Mar 5

Subsystems (3)
lore
Share & tools
lore

Yujie Liu

author
#0 lore raw

PATCH v3 1/1 drm/scheduler: fix kernel-doc warning for drm_sched_job_done()

Warning: drivers/gpu/drm/scheduler/sched_main.c:367 function parameter 'result' not described in 'drm_sched_job_done'

Fixes 539f9ee4b52a ("drm/scheduler: properly forward fence errors")

---
Changes in v2:
- Split from the original patch set
https://lore.kernel.org/all/[email protected]/
- Rebase onto latest drm-tip

Changes in v3:
- Change "errno" to uppercase "ERRNO" (suggested by Philipp)

 drivers/gpu/drm/scheduler/sched_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/scheduler/sched_main.c +1 -0
index e6ee35406165..2d5cb21a05b6 100644
@@ -361,6 +361,7 @@ static void drm_sched_run_free_queue(struct drm_gpu_scheduler *sched)
 /**
  * drm_sched_job_done - complete a job
  * @s_job: pointer to the job which is done
+ * @result: 0 on success, -ERRNO on error
  *
  * Finish the job's fence and resubmit the work items.
  */
Signature · 1 line
2.43.0
#1 lore raw
Quoted 4 lines · Yujie Liu

Warning: drivers/gpu/drm/scheduler/sched_main.c:367 function parameter 'result' not described in 'drm_sched_job_done'

Fixes 539f9ee4b52a ("drm/scheduler: properly forward fence errors")

Pushed to drm-misc-fixes.

Thank you

P.

PS:
for the future, scripts/get_maintainer provides a list of all recipents a patch should go to (two maintainers were missing). And a sentence or two in commit messages to describe what is being done are desirable. I added them for now, so no big deal. Just as a tip for the future :]

Quoted 24 lines

---
Changes in v2:
- Split from the original patch set
  https://lore.kernel.org/all/[email protected]/
- Rebase onto latest drm-tip

Changes in v3:
- Change "errno" to uppercase "ERRNO" (suggested by Philipp)

 drivers/gpu/drm/scheduler/sched_main.c | 1 +

 1 file changed, 1 insertion(+)
drivers/gpu/drm/scheduler/sched_main.c +1 -0
index e6ee35406165..2d5cb21a05b6 100644
@@ -361,6 +361,7 @@ static void drm_sched_run_free_queue(struct drm_gpu_scheduler *sched)
  /**
   * drm_sched_job_done - complete a job
   * @s_job: pointer to the job which is done
+ * @result: 0 on success, -ERRNO on error
   *
   * Finish the job's fence and resubmit the work items.
   */
author
#2 lore raw
Quoted 10 lines · Philipp Stanner
Quoted 4 lines · Yujie Liu

Warning: drivers/gpu/drm/scheduler/sched_main.c:367 function parameter 'result' not described in 'drm_sched_job_done'

Fixes 539f9ee4b52a ("drm/scheduler: properly forward fence errors")

Pushed to drm-misc-fixes.

Thank you

Quoted 7 lines

P.

PS:
for the future, scripts/get_maintainer provides a list of all recipents a patch should go to (two maintainers were missing). And a sentence or two in commit messages to describe what is being done are desirable. I added them for now, so no big deal. Just as a tip for the future :]

Thank you for the helpful tips. I did try scripts/get_maintainer.pl which showed many recipients. I wasn't sure if such a minor kernel-doc fix should be sent to so many maintainers, so I followed the same recipient list as the commit in the "Fixes:" tag [1]. And yes I should put some description words in commit message in addition to the plain build warning, thanks for help adding this. I'll keep these nice tips in mind for furture patches.

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

Yujie

Quoted 26 lines
Quoted 25 lines

---
Changes in v2:
- Split from the original patch set
  https://lore.kernel.org/all/[email protected]/
- Rebase onto latest drm-tip

Changes in v3:
- Change "errno" to uppercase "ERRNO" (suggested by Philipp)

 drivers/gpu/drm/scheduler/sched_main.c | 1 +

 1 file changed, 1 insertion(+)
drivers/gpu/drm/scheduler/sched_main.c +1 -0
index e6ee35406165..2d5cb21a05b6 100644
@@ -361,6 +361,7 @@ static void drm_sched_run_free_queue(struct drm_gpu_scheduler *sched)
  /**
   * drm_sched_job_done - complete a job
   * @s_job: pointer to the job which is done
+ * @result: 0 on success, -ERRNO on error
   *
   * Finish the job's fence and resubmit the work items.
   */