Skip to contentSkip to conversation

A simple doc fix

PATCH In review Anup K Parikh 2 participants 3 messages Sep 20, 2022

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

PATCH v2 1/1 A simple doc fix

Fix two warnings during doc build which also results in corresponding additions in generated docs

Warnings Fixed:
1. include/drm/gpu_scheduler.h:462: warning: Function parameter or member 'dev' not described in 'drm_gpu_scheduler'
2. drivers/gpu/drm/scheduler/sched_main.c:1005: warning: Function parameter or member 'dev' not described in 'drm_sched_init'

---
Changes in v2:
Correct the doc strings according to

 drivers/gpu/drm/scheduler/sched_main.c | 2 ++
 include/drm/gpu_scheduler.h            | 2 ++
 2 files changed, 4 insertions(+)
drivers/gpu/drm/scheduler/sched_main.c +2 -0
index 68317d3a7a27..979685830671 100644
@@ -994,6 +994,8 @@ static int drm_sched_main(void *param)
  *		used
  * @score: optional score atomic shared with other schedulers
  * @name: name used for debugging
+ * @dev: A device pointer - primarily useful for printing standardized
+ *       messages with DRM_DEV_ERROR().
  *
  * Return 0 on success, otherwise error code.
  */
include/drm/gpu_scheduler.h +2 -0
index addb135eeea6..80a525dd19bd 100644
@@ -435,6 +435,8 @@ struct drm_sched_backend_ops {
  * @_score: score used when the driver doesn't provide one
  * @ready: marks if the underlying HW is ready to work
  * @free_guilty: A hit to time out handler to free the guilty job.
+ * @dev: A device pointer - primarily useful for printing standardized
+ *       messages with DRM_DEV_ERROR().
  *
  * One scheduler is implemented for each hardware ring.
  */
Signature · 1 line
2.35.1
Reviewed-by on v2 1/1
#1 lore raw

Will push it to drm-misc-next

Thanks,

Andrey

Quoted 44 lines · Anup K Parikh

Fix two warnings during doc build which also results in corresponding additions in generated docs

Warnings Fixed:
1. include/drm/gpu_scheduler.h:462: warning: Function parameter or member 'dev' not described in 'drm_gpu_scheduler'
2. drivers/gpu/drm/scheduler/sched_main.c:1005: warning: Function parameter or member 'dev' not described in 'drm_sched_init'

---
Changes in v2:
Correct the doc strings according to

  drivers/gpu/drm/scheduler/sched_main.c | 2 ++
  include/drm/gpu_scheduler.h            | 2 ++
  2 files changed, 4 insertions(+)
drivers/gpu/drm/scheduler/sched_main.c +2 -0
index 68317d3a7a27..979685830671 100644
@@ -994,6 +994,8 @@ static int drm_sched_main(void *param)
   *		used
   * @score: optional score atomic shared with other schedulers
   * @name: name used for debugging
+ * @dev: A device pointer - primarily useful for printing standardized
+ *       messages with DRM_DEV_ERROR().
   *
   * Return 0 on success, otherwise error code.
   */
include/drm/gpu_scheduler.h +2 -0
index addb135eeea6..80a525dd19bd 100644
@@ -435,6 +435,8 @@ struct drm_sched_backend_ops {
   * @_score: score used when the driver doesn't provide one
   * @ready: marks if the underlying HW is ready to work
   * @free_guilty: A hit to time out handler to free the guilty job.
+ * @dev: A device pointer - primarily useful for printing standardized
+ *       messages with DRM_DEV_ERROR().
   *
   * One scheduler is implemented for each hardware ring.
   */
#2 lore raw
In reply to Anup K Parikh

After rebasing to latest drm-misc-next to latest I actually see someone else already fixed this and other kerneldoc warnings so we can skip this patch.

Andrey

Quoted 44 lines · Anup K Parikh

Fix two warnings during doc build which also results in corresponding additions in generated docs

Warnings Fixed:
1. include/drm/gpu_scheduler.h:462: warning: Function parameter or member 'dev' not described in 'drm_gpu_scheduler'
2. drivers/gpu/drm/scheduler/sched_main.c:1005: warning: Function parameter or member 'dev' not described in 'drm_sched_init'

---
Changes in v2:
Correct the doc strings according to

  drivers/gpu/drm/scheduler/sched_main.c | 2 ++
  include/drm/gpu_scheduler.h            | 2 ++
  2 files changed, 4 insertions(+)
drivers/gpu/drm/scheduler/sched_main.c +2 -0
index 68317d3a7a27..979685830671 100644
@@ -994,6 +994,8 @@ static int drm_sched_main(void *param)
   *		used
   * @score: optional score atomic shared with other schedulers
   * @name: name used for debugging
+ * @dev: A device pointer - primarily useful for printing standardized
+ *       messages with DRM_DEV_ERROR().
   *
   * Return 0 on success, otherwise error code.
   */
include/drm/gpu_scheduler.h +2 -0
index addb135eeea6..80a525dd19bd 100644
@@ -435,6 +435,8 @@ struct drm_sched_backend_ops {
   * @_score: score used when the driver doesn't provide one
   * @ready: marks if the underlying HW is ready to work
   * @free_guilty: A hit to time out handler to free the guilty job.
+ * @dev: A device pointer - primarily useful for printing standardized
+ *       messages with DRM_DEV_ERROR().
   *
   * One scheduler is implemented for each hardware ring.
   */