Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp378968rwd; Wed, 24 May 2023 20:23:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4r79xcwLuukcIBiwTM3n7TAIpKIvm+EXf4QalyIkNVyrdVjEsyBhggiaTT/9jFwx0u0MUo X-Received: by 2002:a17:902:ec88:b0:1af:dc2e:cd3e with SMTP id x8-20020a170902ec8800b001afdc2ecd3emr250083plg.1.1684984983490; Wed, 24 May 2023 20:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684984983; cv=none; d=google.com; s=arc-20160816; b=kv0qXR0yqbHUs2g4Tn6rQeanLxT02CwvzR8qABUY1ZhsSuvg6cAjLt4t6qHpK1C69T 2a0u2G64q+E6Zd8z0HMQu9aaPO+P4r+lvoMck/dYo5KE/efU3HlzVYtOIalg7e+HFURQ jzlQhnARQEG7qlBfY989yTnVr5J1qsLcaqSCuedpuX65mqwG4LrqxZ2e5WglZkNySQJp 0iEp66skqV6JXL09NuYB49gO3BhBZ4OEGpgDMntdreuoB/oTwP69+GCyYvl8oSsNXvir hI1ceVmBlItI3BKOoWN/njQp+BRs012YJLf+QWNjuep8mq4WfenN73jHjqtvQPHb/sTj kf2g== 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=ACRW/iGiyqlXoUQSCVIJAPTY//4SqJbzaGuGdA3Lfaw=; b=sVVFm31CLU0kOOCBp9qORhR0T4s7CFqmsl+3HiKj2QTqR5aAVtLAS4bJh7eg0PwPoT QPODAS3Ye56SacmiJIiSRtVPkKSvSQ7qm0e86Qf2qMa5S+AjtDokLAWXiLPkQTqVa0PB d4LTioiIslCYxcX7pVaxihidFcFCYs9ku+MtVFwE2cGKfqBHxCLQ5QG61YFTG6WvT1Oy MGnUAhihttYt/yvHCjwMdVukU3Y1R+FN68B7YlDNheWGNYrxzNTx5B9F9SAjT2U/kfNH TpN7globQNnuU6qjGpwGiYK097PJtU36fHjZz6kizbGZ39FSV1da6zKUDJS5IaDD1MMI mk8A== 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 d7-20020a170903230700b001ac4e2d2b58si520571plh.112.2023.05.24.20.22.50; Wed, 24 May 2023 20:23:03 -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 S237559AbjEYCnL (ORCPT + 99 others); Wed, 24 May 2023 22:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234957AbjEYCnK (ORCPT ); Wed, 24 May 2023 22:43:10 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3225DE6 for ; Wed, 24 May 2023 19:43:09 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QRXNq1byQzsRxN; Thu, 25 May 2023 10:40:59 +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; Thu, 25 May 2023 10:43:06 +0800 From: Miaohe Lin To: , , , , , CC: , , , , , , , Subject: [PATCH] sched/psi: make psi_cgroups_enabled static Date: Thu, 25 May 2023 18:34:28 +0800 Message-ID: <20230525103428.49712-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: dggems702-chm.china.huawei.com (10.3.19.179) 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,RCVD_IN_MSPIKE_H2,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 The static key psi_cgroups_enabled is only used inside file psi.c. Make it static. Signed-off-by: Miaohe Lin --- 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