]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kernel/workqueue: Document wq_worker_last_func() argument
authorBart Van Assche <bvanassche@acm.org>
Tue, 19 Mar 2019 17:45:09 +0000 (10:45 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 19 Mar 2019 17:48:20 +0000 (10:48 -0700)
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'

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c

index 56b7cf898f108220915c1a7d84a871c224c19b40..21721faa923c84ef800f633ef01a62a09cbe7675 100644 (file)
@@ -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.