]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cgroup: remove unused macro for_each_e_css()
authorMiaohe Lin <linmiaohe@huawei.com>
Sat, 27 May 2023 09:33:53 +0000 (17:33 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 5 Jun 2023 19:20:20 +0000 (09:20 -1000)
for_each_e_css() is unused now. Remove it.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Yosry Ahmed <yosryahmed@google.com>
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c

index f329f49529a2c51afdc4ddee92a8a2743d782866..eb3d9c1f25e30d07b1fb9eff2d9cbb09d38d2a25 100644 (file)
@@ -690,21 +690,6 @@ EXPORT_SYMBOL_GPL(of_css);
                                lockdep_is_held(&cgroup_mutex)))) { }   \
                else
 
-/**
- * for_each_e_css - iterate all effective css's of a cgroup
- * @css: the iteration cursor
- * @ssid: the index of the subsystem, CGROUP_SUBSYS_COUNT after reaching the end
- * @cgrp: the target cgroup to iterate css's of
- *
- * Should be called under cgroup_[tree_]mutex.
- */
-#define for_each_e_css(css, ssid, cgrp)                                            \
-       for ((ssid) = 0; (ssid) < CGROUP_SUBSYS_COUNT; (ssid)++)            \
-               if (!((css) = cgroup_e_css_by_mask(cgrp,                    \
-                                                  cgroup_subsys[(ssid)]))) \
-                       ;                                                   \
-               else
-
 /**
  * do_each_subsys_mask - filter for_each_subsys with a bitmask
  * @ss: the iteration cursor