mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nikolai Dokutovich <ndokutovich@gmail.com>
To: Tejun Heo <tj@kernel.org>, Johannes Weiner <hannes@cmpxchg.org>
Cc: "Michal Koutný" <mkoutny@suse.com>,
	cgroups@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Nikolai Dokutovich" <ndokutovich@gmail.com>
Subject: [PATCH] cgroup: fix the css parameter names in the descendant iterator docs
Date: Sun, 29 Nov 2026 04:41:32 +0300	[thread overview]
Message-ID: <20261129014132.57404-1-ndokutovich@gmail.com> (raw)

css_for_each_descendant_pre() and css_for_each_descendant_post() take
the css to walk as their second parameter, named css, but their
kernel-doc tags and prose call it root. Rename it to css throughout;
kernel-doc flags the tags as excess parameters otherwise.

Signed-off-by: Nikolai Dokutovich <ndokutovich@gmail.com>
---
 include/linux/cgroup.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 2afb4cb2bb4f..f3c65991acac 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -235,9 +235,9 @@ void css_task_iter_end(struct css_task_iter *it);
 /**
  * css_for_each_descendant_pre - pre-order walk of a css's descendants
  * @pos: the css * to use as the loop cursor
- * @root: css whose descendants to walk
+ * @css: css whose descendants to walk
  *
- * Walk @root's descendants.  @root is included in the iteration and the
+ * Walk @css's descendants.  @css is included in the iteration and the
  * first node to be visited.  Must be called under rcu_read_lock().
  *
  * If a subsystem synchronizes ->css_online() and the start of iteration, a
@@ -298,7 +298,7 @@ void css_task_iter_end(struct css_task_iter *it);
  * @css: css whose descendants to walk
  *
  * Similar to css_for_each_descendant_pre() but performs post-order
- * traversal instead.  @root is included in the iteration and the last
+ * traversal instead.  @css is included in the iteration and the last
  * node to be visited.
  *
  * If a subsystem synchronizes ->css_online() and the start of iteration, a
-- 
2.43.0


                 reply	other threads:[~2026-11-29  1:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261129014132.57404-1-ndokutovich@gmail.com \
    --to=ndokutovich@gmail.com \
    --cc=cgroups@vger.kernel.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mkoutny@suse.com \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®