Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4075256iob; Tue, 17 May 2022 13:22:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYTfyZzu+BvfHTOA2QgMDxP0neRaRasbsVjE+RfGp9NDyqzXePTQCCj9rBWOwIh2fTfFFQ X-Received: by 2002:a17:902:7401:b0:161:9465:80a4 with SMTP id g1-20020a170902740100b00161946580a4mr8415885pll.51.1652818967874; Tue, 17 May 2022 13:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652818967; cv=none; d=google.com; s=arc-20160816; b=zg9yC7pPtnW76dpdU1DxjPDL0lQC29XlxaF3f/czDfu1vluECeNLd3eHpWPXV6O/lD 9bKVFs+wCQUh/9CO/Wn1RAtOPTOjn3sNRwv41sqqm0IQ4OS7w8f3R1EinZTAt7Kugzs5 4ftFtvVBShDLtuZLAR0tO1bwHf+ZUJD/L1wDSM4wpmQ5XgAuuNvGpMcvHUEQOnG9TKdo ioQUQSNSP7byao3F7bqX6mdrLvDLcpai1X5S2AScxlua0einkspZeqNgod5tECVM95Dp FqlUFHjwUlg3hmLSABOgT4ohvtza1YIfLqfcfHesPJELADv4ot0QG6n0liyGNOAWuXJ9 Fa/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=1cAvP/TLYmXFqf0xLYycavDBFtrNJ2o1Z1lTcK3K0Ws=; b=0FaCD1gzUF8W74vNBzeyJpCuJlWV+WcSNeZWNWUpII/gQJJEiXee7Cfmndlp2QC+3K CyRRHqB9TNdckOb5kHi0bSSgLF9jJcEKnFUEA1VCwn9dXffiUcOCmvSN6qEWBIU0NId9 t8/COqsswre/Ere/g9z8E5OYtIRSJ4UC6DWBp3fkxhmaVdYhBOtp9HPEcSudrM3B/Yhd 36dFQtg6sdojBZJ3J5xVDoZ1/Ui6ekvWvT2gFGdicymAuCDxXn1HCv3FkFwmxhk6Q9aJ mY8NdjVtpwYZMN13b+be7H9huzdz+cNHy0yZcVrVfEEwlb9xB6KWpCuC+4q2lVyFWROC Xk0g== 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 bg23-20020a056a02011700b003f5e7c0649bsi1730876pgb.698.2022.05.17.13.22.10; Tue, 17 May 2022 13:22:47 -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 S1345169AbiEQL1B (ORCPT + 99 others); Tue, 17 May 2022 07:27:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbiEQL04 (ORCPT ); Tue, 17 May 2022 07:26:56 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D8F231930; Tue, 17 May 2022 04:26:55 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4L2YfR5nbFzGp2r; Tue, 17 May 2022 19:23:59 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.58) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 17 May 2022 19:26:53 +0800 From: Xiu Jianfeng To: , , CC: , Subject: [PATCH -next] cgroup: Make cgroup_debug static Date: Tue, 17 May 2022 19:25:23 +0800 Message-ID: <20220517112523.243386-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.58] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 Make cgroup_debug static since it's only used in cgroup.c Signed-off-by: Xiu Jianfeng --- kernel/cgroup/cgroup-internal.h | 1 - kernel/cgroup/cgroup.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/cgroup/cgroup-internal.h b/kernel/cgroup/cgroup-internal.h index 6e36e854b512..5da09c74228d 100644 --- a/kernel/cgroup/cgroup-internal.h +++ b/kernel/cgroup/cgroup-internal.h @@ -12,7 +12,6 @@ #define TRACE_CGROUP_PATH_LEN 1024 extern spinlock_t trace_cgroup_path_lock; extern char trace_cgroup_path[TRACE_CGROUP_PATH_LEN]; -extern bool cgroup_debug; extern void __init enable_debug_cgroup(void); /* diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index adb820e98f24..a97fd051430b 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -96,7 +96,7 @@ EXPORT_SYMBOL_GPL(css_set_lock); DEFINE_SPINLOCK(trace_cgroup_path_lock); char trace_cgroup_path[TRACE_CGROUP_PATH_LEN]; -bool cgroup_debug __read_mostly; +static bool cgroup_debug __read_mostly; /* * Protects cgroup_idr and css_idr so that IDs can be released without -- 2.17.1