Skip to contentSkip to conversation

drm/schedular: fix the warning in drm_sched_job_done

PATCH In review Sunil Khatri 3 participants 3 messages Apr 17, 2025

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

PATCH 1/1 drm/schedular: fix the warning in drm_sched_job_done

Fix the below warning.
scheduler/sched_main.c:397: warning: Function parameter or struct member 'result' not described in 'drm_sched_job_done'

---
 drivers/gpu/drm/scheduler/sched_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/scheduler/sched_main.c +1 -0
index bfea608a7106..2b5cf2bdf900 100644
@@ -390,6 +390,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: passed dma fence error
  *
  * Finish the job's fence and wake up the worker thread.
  */
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

[Added Philipp and Danilo to cc.]

Quoted 13 lines · Sunil Khatri

Fix the below warning.
scheduler/sched_main.c:397: warning: Function parameter or struct member 'result' not described in 'drm_sched_job_done'

---
  drivers/gpu/drm/scheduler/sched_main.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/scheduler/sched_main.c +0 -0
index bfea608a7106..2b5cf2bdf900 100644

drivers/gpu/drm/scheduler/sched_main.c static void drm_sched_run_free_queue(struct drm_gpu_scheduler *sched) · line 396

Quoted 7 lines
drivers/gpu/drm/scheduler/sched_main.c +1 -0
@@ -390,6 +390,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: passed dma fence error
   *
   * Finish the job's fence and wake up the worker thread.
   */

s/drm\/schedular:/drm\/sched:/

With that:

Optionally, "passed dma fence error" could perhaps be improved to say something like "Error code to set on the scheduler fence".

Regards,

Tvrtko

#2 lore raw
Quoted 12 lines · Tvrtko Ursulin

[Added Philipp and Danilo to cc.]

Quoted 8 lines · Sunil Khatri

Fix the below warning.
scheduler/sched_main.c:397: warning: Function parameter or struct member 'result' not described in 'drm_sched_job_done'

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

  1 file changed, 1 insertion(+)
Quoted 15 lines
Quoted 12 lines
drivers/gpu/drm/scheduler/sched_main.c +1 -0
index bfea608a7106..2b5cf2bdf900 100644
@@ -390,6 +390,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: passed dma fence error
    *
    * Finish the job's fence and wake up the worker thread.
Quoted 1 line

   */

s/drm\/schedular:/drm\/sched:/

Noted

Quoted 6 lines

With that:

Optionally, "passed dma fence error" could perhaps be improved to say something like "Error code to set on the scheduler fence".

Noted, Thanks a lot.

Quoted 5 lines

Regards,

Tvrtko