summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2019-03-19 10:45:09 -0700
committerTejun Heo <tj@kernel.org>2019-03-19 10:48:20 -0700
commit8194fe94ab08f56ea55653df924647d23873d18c (patch)
tree61264f71559f2b1105362cba4a9555735e96de01
parenta2775bbc1d58ce630517dfe86090c166f27d719f (diff)
downloadlinux-8194fe94ab08f56ea55653df924647d23873d18c.tar.gz
linux-8194fe94ab08f56ea55653df924647d23873d18c.tar.bz2
linux-8194fe94ab08f56ea55653df924647d23873d18c.zip
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' Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r--kernel/workqueue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 56b7cf898f10..21721faa923c 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -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.