Skip to content

Commit b4cc619

Browse files
rddunlaphtejun
authored andcommitted
cgroup: cgroup-v1: clean up kernel-doc notation
Fix kernel-doc warnings found in cgroup-v1.c: kernel/cgroup/cgroup-v1.c:55: warning: No description found for return value of 'cgroup_attach_task_all' kernel/cgroup/cgroup-v1.c:94: warning: expecting prototype for cgroup_trasnsfer_tasks(). Prototype was for cgroup_transfer_tasks() instead cgroup-v1.c:96: warning: No description found for return value of 'cgroup_transfer_tasks' kernel/cgroup/cgroup-v1.c:687: warning: No description found for return value of 'cgroupstats_build' Signed-off-by: Randy Dunlap <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Zefan Li <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: [email protected] Signed-off-by: Tejun Heo <[email protected]>
1 parent c5c63b9 commit b4cc619

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

kernel/cgroup/cgroup-v1.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ bool cgroup1_ssid_disabled(int ssid)
5050
* cgroup_attach_task_all - attach task 'tsk' to all cgroups of task 'from'
5151
* @from: attach to all cgroups of a given task
5252
* @tsk: the task to be attached
53+
*
54+
* Return: %0 on success or a negative errno code on failure
5355
*/
5456
int cgroup_attach_task_all(struct task_struct *from, struct task_struct *tsk)
5557
{
@@ -80,7 +82,7 @@ int cgroup_attach_task_all(struct task_struct *from, struct task_struct *tsk)
8082
EXPORT_SYMBOL_GPL(cgroup_attach_task_all);
8183

8284
/**
83-
* cgroup_trasnsfer_tasks - move tasks from one cgroup to another
85+
* cgroup_transfer_tasks - move tasks from one cgroup to another
8486
* @to: cgroup to which the tasks will be moved
8587
* @from: cgroup in which the tasks currently reside
8688
*
@@ -89,6 +91,8 @@ EXPORT_SYMBOL_GPL(cgroup_attach_task_all);
8991
* is guaranteed to be either visible in the source cgroup after the
9092
* parent's migration is complete or put into the target cgroup. No task
9193
* can slip out of migration through forking.
94+
*
95+
* Return: %0 on success or a negative errno code on failure
9296
*/
9397
int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from)
9498
{
@@ -682,6 +686,8 @@ int proc_cgroupstats_show(struct seq_file *m, void *v)
682686
*
683687
* Build and fill cgroupstats so that taskstats can export it to user
684688
* space.
689+
*
690+
* Return: %0 on success or a negative errno code on failure
685691
*/
686692
int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry)
687693
{

0 commit comments

Comments
 (0)