Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp256623rwd; Fri, 26 May 2023 19:11:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7qDQLBkT9bPJQLCh/vyKpVhXNyegmoI4bFQqEZGES/KR6xCdJ/gRbrtGxTfwFb1WQwJlvx X-Received: by 2002:a17:902:b20c:b0:1ae:7d3d:65c0 with SMTP id t12-20020a170902b20c00b001ae7d3d65c0mr4044531plr.16.1685153512725; Fri, 26 May 2023 19:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685153512; cv=none; d=google.com; s=arc-20160816; b=FXrv0OKHYHsfh+JVF18bdaz8TtOH0iAYU7XCwEWeSPGRaO1XW6ZfAf0GOobB2JDv3d SMKUg50T33ZSB0S0qNKbm4E7PEj59ojX01Q8uJ86Hal37qhA9OVc+VVFyGTmT4+Wwn+X 1iFSdHOm8rqyj9y+iPgmuWTi6tpBF4RWwSRn+o/ypEenTzMgafDPamxcMRZa8fozTxxd M8YrjUhJVDk3Q5rqmyGMk9T6YSx5rzbnwIzdY+QPSvs7qOpBUhrhPYwErd7ad4gCzH7N UuxIFjAPsfyUQ/iUGnk46/1tDH2R9kNcqSA1SXxRyEG0MURqnAORKkbDlXwIaiuh1Sbp DMzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=vAHiXi5j+9ksKN69/R/A7fcVW0bMr0AwQk/XjW4xjPE=; b=t1/+aT/eNC8mLURTlNzJCenb2GRoZfkRltXaqbFf67lEiZMBZxOyiZC8zhYymTeTol 8f5omEj3qim+XdTjiAUXYGytkpLm3sXM5YZCD9sWeTjNu2wsaMDSUTByqXLPqcU13UtF 4P6MAKViEZXJ6+uLflAeU7OYRsZUD4F6cMiaif+xthdqNra9i1IVsMOaybuDokuQCdBc eJkeWNgDS8hsint7dwuZNrC6GbjZ2GbL4eZIpFc2U4IeAx5mUIVfpL8tKNAdCmarPftV TZMSAMhyOjC248N5KzndXVsEOgnMQKwLkkCwp8Tcpxy55FLCorwD76/g8gD529SCWvNN j33g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a170902d48c00b0019c33978781si5746422plg.283.2023.05.26.19.11.38; Fri, 26 May 2023 19:11:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244198AbjE0BnX (ORCPT + 99 others); Fri, 26 May 2023 21:43:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244009AbjE0Bmz (ORCPT ); Fri, 26 May 2023 21:42:55 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEF7DE5E; Fri, 26 May 2023 18:42:37 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QSkvF1P9hzqTQT; Sat, 27 May 2023 09:38:01 +0800 (CST) Received: from huawei.com (10.175.104.170) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sat, 27 May 2023 09:42:34 +0800 From: Miaohe Lin To: , , CC: , , Subject: [PATCH] cgroup: remove unused macro for_each_e_css() Date: Sat, 27 May 2023 17:33:53 +0800 Message-ID: <20230527093353.153078-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.104.170] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org for_each_e_css() is unused now. Remove it. Signed-off-by: Miaohe Lin --- kernel/cgroup/cgroup.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 625d7483951c..413b4f1f1b70 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -689,21 +689,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 -- 2.27.0