]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cgroup: Make cgroup_debug static
authorXiu Jianfeng <xiujianfeng@huawei.com>
Tue, 17 May 2022 11:25:23 +0000 (19:25 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 18 May 2022 16:59:20 +0000 (06:59 -1000)
Make cgroup_debug static since it's only used in cgroup.c

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup-internal.h
kernel/cgroup/cgroup.c

index 6e36e854b5124df5f0b2cd0daefd12b264c56cc4..5da09c74228d000b41f83c2ecbdd4a1d2eb424b5 100644 (file)
@@ -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);
 
 /*
index adb820e98f24396213ffb96ef77b3f6aeae54281..a97fd051430bd2e7173a6d83eb795d5a440d02c4 100644 (file)
@@ -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