diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-09-16 09:02:37 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-09-16 11:31:17 -0400 |
commit | 8a15b81741879fa89601b03c0e50b0d780d65bc0 (patch) | |
tree | ced173659fd3d34e3ad977ecb977d8d3cad81bac | |
parent | 28b89b9e6f7b6c8fef7b3af39828722bca20cfee (diff) |
cpuset: fix non static symbol warning
Fixes the following sparse warning:
kernel/cpuset.c:2088:6: warning:
symbol 'cpuset_fork' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r-- | kernel/cpuset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index c08585ad996b..2b4c20ab5bbe 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
@@ -2085,7 +2085,7 @@ static void cpuset_bind(struct cgroup_subsys_state *root_css) | |||
2085 | * which could have been changed by cpuset just after it inherits the | 2085 | * which could have been changed by cpuset just after it inherits the |
2086 | * state from the parent and before it sits on the cgroup's task list. | 2086 | * state from the parent and before it sits on the cgroup's task list. |
2087 | */ | 2087 | */ |
2088 | void cpuset_fork(struct task_struct *task) | 2088 | static void cpuset_fork(struct task_struct *task) |
2089 | { | 2089 | { |
2090 | if (task_css_is_root(task, cpuset_cgrp_id)) | 2090 | if (task_css_is_root(task, cpuset_cgrp_id)) |
2091 | return; | 2091 | return; |