From patchwork Thu May 25 10:34:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 98761 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp78049vqr; Wed, 24 May 2023 20:10:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7i/7NN3LQvoIcExkItPq9dEyThe5epD+p1/RwYWwFiMHOXjRXk315y/LvyUbek5+0tJj0l X-Received: by 2002:a05:6a00:2d1d:b0:64d:3e7f:7121 with SMTP id fa29-20020a056a002d1d00b0064d3e7f7121mr5582933pfb.22.1684984219108; Wed, 24 May 2023 20:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684984219; cv=none; d=google.com; s=arc-20160816; b=qTQRiPG5UnWWwfyzsJfUuj+PamKVfhb5sKPmn0jrBNaPehQQXF85Cwi9bCbfPAZdQU afNewXuovMnNciwTYuOdY0jPdTQaWakIS91W4EPf7mclvGz2AEojs6vf5V8EIvbJ346o RIHyehrLnOOsfay7CL/RQ/EzMjRGmMY0EGrAZHbU+/lCfou6D2RiQ9a2pjN6xEO78+8Q iKcmceNOFQIgOef70hHQcKLhmJMrtHnO3sZ0R5/sM0cyFj5lMuqY3ICXaaRPT7vKPLPH 6r3eSgP7iQePHMksvzeGTOZPuiLaAaVphAo0AEMh3dau0HtzEe9rtW1tMXWZlDzT9WsI J0/g== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z25-20020aa79599000000b0063b1fbbb8c5si408782pfj.131.2023.05.24.20.10.06; Wed, 24 May 2023 20:10:19 -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 S237564AbjEYCnM (ORCPT + 99 others); Wed, 24 May 2023 22:43:12 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766834012048098039?= X-GMAIL-MSGID: =?utf-8?q?1766834012048098039?= 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;