Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5136195ybl; Tue, 14 Jan 2020 04:11:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxXkpYhoc6+f0Y2v/uniA95T5F7nXPq139DiGfVihgBqYCM9jx11pRv5oz0XscLnmPYTiqp X-Received: by 2002:a9d:6849:: with SMTP id c9mr17443821oto.206.1579003863050; Tue, 14 Jan 2020 04:11:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579003863; cv=none; d=google.com; s=arc-20160816; b=UiAHyfigbknc8vLuhAuy2GcdADywPkOMQxtRmZhBz2AY3XfngG9Lp3BaL7+ci0/USD dJZrxD2f3nLRdQi3Kbh6mY5pEZn1+8axbBZ+1GlhF3ERp3CL4I0tr+8Pfw0S8GZC9Q+B vfUTlf/gNgP6Z1aNENWCN399rNZyZq2RcCXim+0+UtaDabnQviuY0pxL3efumFnsODAd hw034rYbQHsMBqM65iHRmkXpcqD5GT8vtI9/ETUuCP75UZhhYCeZ13pwuRJ9XwSnOPJP 1RzqsELSmyUjldnefJrioFYkAsOuRMcQ9xhYXQUqzZe0pv/LX8GMUmXxzFqD+meDrh3t uQkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from; bh=/Bxtu0STPZKb6bvUT7cbkK5qH4CwmC3q/Eg56K/3VbE=; b=Yi/yZoVCclUIaBpxWJKQIg9+7Whgainv5uD0mB/HBUnduo4oemddeAAoADf6iOpfLl GUIm8fOE7SB99vz5OjyxcBE1Pq2ks3Z8XRfwFT7OKMnCP6T7GnDu9V6Wn3vNnlPgxSS5 AZv+728OJv1PNMmB+vEEjFxz3odFayW8zkEEp5e06rIgdVVJjcaJ6iPd3RVfDa1kErXA X91QbAWfLdgZmdnO+mDwZ1Tx+7N+lPCGr41uSwUjF8dEY4AUICMoKt8xkJo3TZqapmcM b6BEQtMOq0fQQJw1tNVabCm9R0GTWiBsxVVOtpwPWKD2j1hZXWVcvSxz5VUBKwebED7v iFmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si8902824otm.242.2020.01.14.04.10.44; Tue, 14 Jan 2020 04:11:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729094AbgANMJy (ORCPT + 99 others); Tue, 14 Jan 2020 07:09:54 -0500 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:24226 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbgANMJy (ORCPT ); Tue, 14 Jan 2020 07:09:54 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R711e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04452;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0Tnj2qd._1579003781; Received: from localhost(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0Tnj2qd._1579003781) by smtp.aliyun-inc.com(127.0.0.1); Tue, 14 Jan 2020 20:09:41 +0800 From: Alex Shi Cc: Tejun Heo , Li Zefan , Johannes Weiner , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cgroup: remove for_each_e_css Date: Tue, 14 Jan 2020 20:09:32 +0800 Message-Id: <1579003772-46038-1-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit 37ff9f8f4742 ("cgroup: make cgroup[_taskset]_migrate() take cgroup_r', No one use this macro. So it'e better to remove. Signed-off-by: Alex Shi Cc: Tejun Heo Cc: Li Zefan Cc: Johannes Weiner Cc: cgroups@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- kernel/cgroup/cgroup.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 735af8f15f95..7d916ad33e59 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -663,21 +663,6 @@ struct cgroup_subsys_state *of_css(struct kernfs_open_file *of) 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 * @ssid: the index of @ss, CGROUP_SUBSYS_COUNT after reaching the end -- 1.8.3.1