diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2023-06-03 10:13:04 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2023-06-05 23:31:41 +0300 |
commit | 0dad9b072b2b170a99fcefa330a1a3193d503d8c (patch) | |
tree | 5e29f9a821ab568ca3784afc6d606906cc9c26db /kernel/cgroup/cgroup.c | |
parent | c20d4d889fc65bedd52430710ff7428bf32944fd (diff) | |
download | linux-0dad9b072b2b170a99fcefa330a1a3193d503d8c.tar.xz |
cgroup: make cgroup_is_threaded() and cgroup_is_thread_root() static
They're only called inside cgroup.c. Make them static.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup/cgroup.c')
-rw-r--r-- | kernel/cgroup/cgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index f69e9a443ecc..57f31b234433 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -357,7 +357,7 @@ static bool cgroup_has_tasks(struct cgroup *cgrp) return cgrp->nr_populated_csets; } -bool cgroup_is_threaded(struct cgroup *cgrp) +static bool cgroup_is_threaded(struct cgroup *cgrp) { return cgrp->dom_cgrp != cgrp; } @@ -396,7 +396,7 @@ static bool cgroup_can_be_thread_root(struct cgroup *cgrp) } /* is @cgrp root of a threaded subtree? */ -bool cgroup_is_thread_root(struct cgroup *cgrp) +static bool cgroup_is_thread_root(struct cgroup *cgrp) { /* thread root should be a domain */ if (cgroup_is_threaded(cgrp)) |