Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1324401rwd; Thu, 25 May 2023 10:55:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5swwd4i6YjbxkSxle9AcHdPEZ/xqekVEPMqB8q7DYe6AqwqI51UqZHrArcHgwG5c2rhgga X-Received: by 2002:a05:6a00:2295:b0:64d:1c59:6767 with SMTP id f21-20020a056a00229500b0064d1c596767mr11087627pfe.24.1685037315975; Thu, 25 May 2023 10:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685037315; cv=none; d=google.com; s=arc-20160816; b=B+jYnsEUVmlEkGa/HoJVNQmlZN0YT5kdHblmttS/EYSoxsTUVZKJ794eIe+fe6PXkB XECYIOYI1D86Oh8LAkwdZoN7yoxod7UsNDQnRT6AJPXa4L6bZRqhK8uLZCVrqMhi8dE/ 9TT582Iq60SEjUnEGrh4RGLwi74Bx7Jc/XpS5ty6wGHW27COt+0Vwm7uO52xGOnTAUIO 31ngoyyuKUk/HDvxzb+AgiYXLzr38PQnHuzmO1c+PjUYeTrah9zNL7OOPgaRw+KqWwx1 2Yqkk2VZkqpkpKLuPtXgxaV4i85PxmOgQbFttpMVDg4FOWKZWheiGV6AAU5779Ip8Www zqpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Nvg1LF6ZKIn2vWNEhEDwKSuGqGYImWJiPe1uUBeKlZA=; b=UOy/7/FdI9atiKwvR0sovFzwkU6nvibLHUUpJjJcd1no6oIjZTMkkBKYsl6j2FLwQ2 /dYY8ZrfgBmm64ixno/0LMGIC2uf2+p+jXEQrTZuaEWzA2Puea2w/Lq6F2lYmhV4rUdf mZ/JXYGKKspE8vus8SVdHhmjGaYoxY8/FKFBO/5s/hEcb4pxPsKgAQnFgbxp8LCRF94Z lxN72YhQ+Klei5ppoyue4VmVljntgUNz/DLgUT9uWTwYwDpH/dLNoXgYGnKg4bDPlgwd REhQG7QIVoTFtVvy6FhTdrPmdpnZbb7YPfNQ++89i+TNetYSAIS1HfwaSLvjUZNLxKkE QFRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=efPy5J1i; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a635607000000b0053f163363c0si840626pgb.95.2023.05.25.10.55.02; Thu, 25 May 2023 10:55:15 -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; dkim=pass header.i=@google.com header.s=20221208 header.b=efPy5J1i; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233083AbjEYRob (ORCPT + 99 others); Thu, 25 May 2023 13:44:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbjEYRoa (ORCPT ); Thu, 25 May 2023 13:44:30 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F20C0E76 for ; Thu, 25 May 2023 10:43:56 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id 3f1490d57ef6-ba8afcc82c0so1593864276.2 for ; Thu, 25 May 2023 10:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1685036626; x=1687628626; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Nvg1LF6ZKIn2vWNEhEDwKSuGqGYImWJiPe1uUBeKlZA=; b=efPy5J1ioAVeAgWGlA2+YMxEGITfTO3Sb5LdcEKRz6b+uTM1gH9ymZ3F9KuvjRG3jU z8PlFs7H/YSWF9GVfiG51wlspQG5IS7irbU3zNRMEHP1KNGRVpKL9jE4MoovrBo/S6Fw d6l6WKoQxoyUGyvFsR5LALj/4NPRIobzt9+0QE2FzBhYJ67AD25BdGlBRADpKxc5nR9o hyzTcKQakLuxoCnJyiwNFAbuRp8L3HXKKgnUVQodF7yyeRgvFxV/emlQbeGyDV99+eAg ZpcO28j2T+NaOWHYPRQkvJnxlB3/HlHacbq+Zm/dhjr+HWfhaov5k4BrlyBp7S8/Tsrm sPEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685036626; x=1687628626; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Nvg1LF6ZKIn2vWNEhEDwKSuGqGYImWJiPe1uUBeKlZA=; b=dRSpUOfUc6CUNJZQS0mIcZt2QI2K3xQYuk1obFihgfYQfif1XRF4Mi+cQRYojZN5e8 wNEsmwiR18Qs+qQNSF3FZzsU9aUpI5ELevJRAywQDemj+9a/aAYuOrvgSqMG5pWd3Pru nVpt7643HngNGqOzkeJQIOfhB4FC0kAVn8icfHlfyb7dC+FU6uDBTS8ciDNW0U6KLBcn P18SOvq0JDapcgtowO5NE6E9vCDSogQGZDER9ZEMHL4RWxkk/dJiudGapI9HeppL3mGP xkb0lV4hbf5UBVQvWdA+/0iuzETGrXGdKngxqErNxDj/EWLIAr8o6hWNuhTx7moTNbTG 6OHg== X-Gm-Message-State: AC+VfDxzgcLCIIWox6s32mOJU61pLpW0oPRYD97qZF0uGr0L1vLbw0eX 2fKRn+GnDFm5Y/xqBAhQNwLotiaWPOsgoP6/RXBXbg== X-Received: by 2002:a25:73ce:0:b0:ba8:29cf:f772 with SMTP id o197-20020a2573ce000000b00ba829cff772mr4654184ybc.46.1685036625596; Thu, 25 May 2023 10:43:45 -0700 (PDT) MIME-Version: 1.0 References: <20230525103428.49712-1-linmiaohe@huawei.com> In-Reply-To: <20230525103428.49712-1-linmiaohe@huawei.com> From: Suren Baghdasaryan Date: Thu, 25 May 2023 10:43:34 -0700 Message-ID: Subject: Re: [PATCH] sched/psi: make psi_cgroups_enabled static To: Miaohe Lin Cc: hannes@cmpxchg.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Wed, May 24, 2023 at 7:43=E2=80=AFPM Miaohe Lin w= rote: > > The static key psi_cgroups_enabled is only used inside file psi.c. > Make it static. > > Signed-off-by: Miaohe Lin Reviewed-by: Suren Baghdasaryan > --- > kernel/sched/psi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c > index 81fca77397f6..2ccb0b2ebd78 100644 > --- a/kernel/sched/psi.c > +++ b/kernel/sched/psi.c > @@ -140,7 +140,7 @@ > static int psi_bug __read_mostly; > > DEFINE_STATIC_KEY_FALSE(psi_disabled); > -DEFINE_STATIC_KEY_TRUE(psi_cgroups_enabled); > +static DEFINE_STATIC_KEY_TRUE(psi_cgroups_enabled); > > #ifdef CONFIG_PSI_DEFAULT_DISABLED > static bool psi_enable; > -- > 2.27.0 >