Skip to content

Commit 2ca11b0

Browse files
Yang Lihtejun
authored andcommitted
cgroup: Fix kernel-doc
Fix function name in cgroup.c and rstat.c kernel-doc comment to remove these warnings found by clang_w1. kernel/cgroup/cgroup.c:2401: warning: expecting prototype for cgroup_taskset_migrate(). Prototype was for cgroup_migrate_execute() instead. kernel/cgroup/rstat.c:233: warning: expecting prototype for cgroup_rstat_flush_begin(). Prototype was for cgroup_rstat_flush_hold() instead. Reported-by: Abaci Robot <[email protected]> Fixes: 'commit e595cd7 ("cgroup: track migration context in cgroup_mgctx")' Signed-off-by: Yang Li <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent c2a1197 commit 2ca11b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/cgroup/cgroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,7 @@ struct task_struct *cgroup_taskset_next(struct cgroup_taskset *tset,
23892389
}
23902390

23912391
/**
2392-
* cgroup_taskset_migrate - migrate a taskset
2392+
* cgroup_migrate_execute - migrate a taskset
23932393
* @mgctx: migration context
23942394
*
23952395
* Migrate tasks in @mgctx as setup by migration preparation functions.

kernel/cgroup/rstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ void cgroup_rstat_flush_irqsafe(struct cgroup *cgrp)
220220
}
221221

222222
/**
223-
* cgroup_rstat_flush_begin - flush stats in @cgrp's subtree and hold
223+
* cgroup_rstat_flush_hold - flush stats in @cgrp's subtree and hold
224224
* @cgrp: target cgroup
225225
*
226226
* Flush stats in @cgrp's subtree and prevent further flushes. Must be

0 commit comments

Comments
 (0)