Skip to contentSkip to conversation

kernel/workqueue: Document wq_worker_last_func() argument

PATCH Applied Bart Van Assche 2 participants 2 messages Mar 19, 2019 Workqueue

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/workqueue: Document wq_worker_last_func() argument

This patch avoids that the following warning is reported when building with W=1:

kernel/workqueue.c:938: warning: Function parameter or member 'task' not described in 'wq_worker_last_func'

---
 kernel/workqueue.c | 1 +
 1 file changed, 1 insertion(+)
kernel/workqueue.c +1 -0
index ddee541ea97a..723964a566b1 100644
@@ -913,6 +913,7 @@ struct task_struct *wq_worker_sleeping(struct task_struct *task)
 
 /**
  * wq_worker_last_func - retrieve worker's last work function
+ * @task: Task to retrieve last work function of.
  *
  * Determine the last function a worker executed. This is called from
  * the scheduler to get a worker's last known identity.
Signature · 1 line
2.21.0.155.ge902e9bcae20
maintainer Applied
#1 lore raw
Quoted 6 lines · Bart Van Assche

This patch avoids that the following warning is reported when building with W=1:

kernel/workqueue.c:938: warning: Function parameter or member 'task' not described in 'wq_worker_last_func'

Applied to wq/for-5.2.

Thanks.

Signature · 1 line
tejun