Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp657326iob; Wed, 18 May 2022 10:01:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPopqwQwg0vQZg9gt2Cy9eVhvYqH97mFLJl73WpNksgjv8cBYdNJ7WjK4gFr+n9J1qziVw X-Received: by 2002:a63:e513:0:b0:3ab:a3fb:f100 with SMTP id r19-20020a63e513000000b003aba3fbf100mr366130pgh.70.1652893270443; Wed, 18 May 2022 10:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652893270; cv=none; d=google.com; s=arc-20160816; b=0Ef1UPNHStMBkyvUX6c9dDbQKKqKEhub1mee8WFxeAMZfvYf9JM29gdat3R9ZNO4OL 06AqRBUWWYZlaBN6+JN7qrmB7w/aqpsjvXEgXEPTe2VI2y1LhnIngoy6D46qWj8Sa4Yc vMSl8uYWd/xb7IUD1/dM50v9/ddV3YL7TNmhbbcBvG0SobgtCCimnQuL+2s61ij6WLzA qd2th75qOPRVmprS2zX+IHjxsFfpqXtXKeMmdVAweJJlI8ZbKb4zOmBbChuXBPCo5kvq ognYqeJvZaReed20cqGfDGFjx8pGtcjp0svbsRnhFoGKLEafCQZIzgH/zM3OZ11CBVXI oLJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=12ObYYrf99f0yLEIMoJi0RP8wJdhcsztzbMI93JYaGg=; b=cLkATIb1oMsmLYnPgh2UCl+Un7C3M6BZee/EKkidcpNIhGHKkAy4HRVUSMTk1wb5hf sCddqa2LmrAOhjvuZaM4W2FtpokWokhnJ2Wx97BBrWxXH2DSxWS9H9CJk890ck3n0Kju 4LEi/PuhNnWlgzG/7G4udLUdMFlVZ+J2FHYFbiDZCVoZKvswtuVWvEYATNCNos+gA4/r 6k4FWVVM2/7Dl97TrG1CE5rCLLIKmaYMt+vx3KPdA5PhaeKxNb4o94desivmmTCHVJTn yLBR4ds9XnzZsQZOpIvWeW8Hm3tR7xsYq+BpMWENB7Ntrrdkdae9NDyTxRPzUdhW4qka G3Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fJuwr+79; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b1-20020a056a000a8100b0050aaf7a1bbcsi4297606pfl.37.2022.05.18.10.01.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 10:01:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fJuwr+79; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0658E1157FC; Wed, 18 May 2022 09:57:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240605AbiERQ52 (ORCPT + 99 others); Wed, 18 May 2022 12:57:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240594AbiERQ5R (ORCPT ); Wed, 18 May 2022 12:57:17 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 306E41053FA; Wed, 18 May 2022 09:57:16 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id ev18so2642300pjb.4; Wed, 18 May 2022 09:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=12ObYYrf99f0yLEIMoJi0RP8wJdhcsztzbMI93JYaGg=; b=fJuwr+79VK40EWiLDG7rqWOctqpq6NcDBduZ3aXuqdASFa6Lj98Yc312Y03+qRCODk 6UQy0HrgZTAejHxAh+UOFjyZ/2CGbXNYAPpBBlCqJf/596yD53ifCnhcJWeyvqTR1jWn StEH1xtvTb4qIomCptdjFPb3uHvzEfFHpPeAhK/H8nHOw+r0ReqkF4YQYkrNfAyx0mMz /gh/6CpYiO0DC3/99Q7xkRa/pT+GO7sbeXBXM9WdlbVzviKDCA9BJCWHe32m7ZIHVbgE 4TIuVjndwOW00mw7ya+C+VmsVltd2TM61fvflm1FuS44n9tvhU2RqZZHHkNG5zfOG1rC a98g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=12ObYYrf99f0yLEIMoJi0RP8wJdhcsztzbMI93JYaGg=; b=RBY4XFwaN9rCbv4yyxFIJNZI4dYuB8zOpXXVb4EsjVfWA2er4MhGvZ7UJW1cXEwqzo 1L4iLs+B31mTgQhthmRJSliOdpxs5YQYDFpQavvIDMm6I2h20aZrady5z4A8vm8vMrS/ 4C2oIDAteGqci+0DYBQgtxE03mgjC5jEoAdrzdt95AX+l1E1irNE79X4agcZMY7gKc43 27RDHX3uvL743gZxyk44qeUk68C7ADvyodjnnIcO5bt2Ae5oAKjGDRldQMKQ/+88z56r 7dBB5R9ATUH0LMhdS8uMagbKcGA/JRbjP/x7A7AT8wp/Js55YSfD/X6OijNik/OaLzbo GK6g== X-Gm-Message-State: AOAM530djaCV8SDjSl3ZaVGGrPOPjQWo5xbZN/vtaOO6MRXwyA7QWSeo 2INi2z/A8VJUe9wlV37tFMo= X-Received: by 2002:a17:90b:1d0c:b0:1dd:2c77:ca95 with SMTP id on12-20020a17090b1d0c00b001dd2c77ca95mr336057pjb.151.1652893035107; Wed, 18 May 2022 09:57:15 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::4:62fc]) by smtp.gmail.com with ESMTPSA id p11-20020a170903248b00b0015ed3a112c9sm1910525plw.280.2022.05.18.09.57.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 09:57:14 -0700 (PDT) Sender: Tejun Heo Date: Wed, 18 May 2022 06:57:13 -1000 From: Tejun Heo To: xiujianfeng Cc: lizefan.x@bytedance.com, hannes@cmpxchg.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] cgroup: Make cgroup_debug static Message-ID: References: <20220517112523.243386-1-xiujianfeng@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 On Wed, May 18, 2022 at 02:48:36PM +0800, xiujianfeng wrote: > > 在 2022/5/18 1:06, Tejun Heo 写道: > > On Tue, May 17, 2022 at 07:25:23PM +0800, Xiu Jianfeng wrote: > > > Make cgroup_debug static since it's only used in cgroup.c > > > > > > Signed-off-by: Xiu Jianfeng > > The only thing it does is gating CFTYPE_DEBUG which isn't used anymore. > > Can you remove both CFTYPE_DEBUG and cgroup_debug() instead? > > It's ok to me, but I found CFTYPE_DEBUG is still used in cpuset subsys, > >   .name = "cpus.subpartitions", >   .seq_show = cpuset_common_seq_show, >   .private = FILE_SUBPARTS_CPULIST, >   .flags = CFTYPE_DEBUG, > > if remove CFTYPE_DEBUG and cgroup_debug,  cpus.subpartitions will be showed > by default,  is this ok? Ah, I missed that. You're right. Lemme apply the original path. Thanks. -- tejun