Skip to contentSkip to conversation

cpuset: fix non static symbol warning

PATCH Applied Wei Yongjun 2 participants 2 messages Sep 16, 2016 1 message not in the archive cgroup

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpuset: fix non static symbol warning

From: Wei Yongjun <[email protected]>

Fixes the following sparse warning:

kernel/cpuset.c:2088:6: warning:
symbol 'cpuset_fork' was not declared. Should it be static?

---
 kernel/cpuset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/cpuset.c +1 -1
index 8141c6b..7fa608d 100644
@@ -2085,7 +2085,7 @@ static void cpuset_bind(struct cgroup_subsys_state *root_css)
  * which could have been changed by cpuset just after it inherits the
  * state from the parent and before it sits on the cgroup's task list.
  */
-void cpuset_fork(struct task_struct *task)
+static void cpuset_fork(struct task_struct *task)
 {
 	if (task_css_is_root(task, cpuset_cgrp_id))
 		return;