Skip to contentSkip to conversation

cgroup: Fix kernel-doc

PATCH Applied Yang Li 2 participants 2 messages May 26, 2021 – Jun 4, 2021 cgroup

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 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.

Fixes 'commit e595cd706982 ("cgroup: track migration context in cgroup_mgctx")'
---
 kernel/cgroup/cgroup.c | 2 +-
 kernel/cgroup/rstat.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
kernel/cgroup/cgroup.c +1 -1
index 21ecc6e..fc344f4 100644
@@ -2389,7 +2389,7 @@ struct task_struct *cgroup_taskset_next(struct cgroup_taskset *tset,
 }
 
 /**
- * cgroup_taskset_migrate - migrate a taskset
+ * cgroup_migrate_execute - migrate a taskset
  * @mgctx: migration context
  *
  * Migrate tasks in @mgctx as setup by migration preparation functions.
kernel/cgroup/rstat.c +1 -1
index cee265c..7f0e589 100644
@@ -220,7 +220,7 @@ void cgroup_rstat_flush_irqsafe(struct cgroup *cgrp)
 }
 
 /**
- * cgroup_rstat_flush_begin - flush stats in @cgrp's subtree and hold
+ * cgroup_rstat_flush_hold - flush stats in @cgrp's subtree and hold
  * @cgrp: target cgroup
  *
  * Flush stats in @cgrp's subtree and prevent further flushes.  Must be
Signature · 1 line
1.8.3.1
maintainer Applied
#1 lore raw
Quoted 10 lines · Yang Li

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.

Quoted 3 lines
Fixes 'commit e595cd706982 ("cgroup: track migration context in cgroup_mgctx")'

Applied to cgroup/for-5.14.

Thanks.

Signature · 1 line
tejun