From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7286965471556201855==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] cgroup_pool_mutex can be static Date: Thu, 09 Sep 2021 01:39:43 +0800 Message-ID: <20210908173943.GA28890@7b6190b7a9e4> In-Reply-To: <03e2b37678c9b2aef4f5dee303b3fb87a565d56b.1631102579.git.escape@linux.alibaba.com> List-Id: --===============7286965471556201855== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable kernel/cgroup/cgroup-v1.c:617:1: warning: symbol 'cgroup_pool_mutex' was no= t declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- cgroup-v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c index 8964c4d0741b5..54dfc3831d3b0 100644 --- a/kernel/cgroup/cgroup-v1.c +++ b/kernel/cgroup/cgroup-v1.c @@ -614,7 +614,7 @@ static int cgroup_clone_children_write(struct cgroup_su= bsys_state *css, * of parent cgroup and child cgroup at the same time. use cgroup_pool_mut= ex * to serialize any write operation to pool_size. */ -DEFINE_MUTEX(cgroup_pool_mutex); +static DEFINE_MUTEX(cgroup_pool_mutex); = static u64 cgroup_pool_size_read(struct cgroup_subsys_state *css, struct cftype *cft) --===============7286965471556201855==--