From: Miaohe Lin Date: Sat, 27 May 2023 09:33:53 +0000 (+0800) Subject: cgroup: remove unused macro for_each_e_css() X-Git-Tag: v6.5-rc1~187^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a49a11dc6449a7e1370441bc23d83d528787066d;p=thirdparty%2Flinux.git cgroup: remove unused macro for_each_e_css() for_each_e_css() is unused now. Remove it. Signed-off-by: Miaohe Lin Reviewed-by: Yosry Ahmed Reviewed-by: Michal Koutný Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index f329f49529a2c..eb3d9c1f25e30 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -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