[PATCH] sched, cgroup: enclose root_task_group with macro CONFIG_CGROUP_SCHED.

From: Haishuang Yan
Date: Sun Oct 30 2016 - 06:28:16 EST


root_task_group defined in sched/core.c is enclosed by
CONFIG_CGROUP_SCHED, so the export declaration should
also be enclosed.

Signed-off-by: Haishuang Yan <yanhaishuang@xxxxxxxxxxxxxxxxxxxx>
---
include/linux/init_task.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index 325f649..f3f73fa 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -132,9 +132,8 @@

extern struct cred init_cred;

-extern struct task_group root_task_group;
-
#ifdef CONFIG_CGROUP_SCHED
+extern struct task_group root_task_group;
# define INIT_CGROUP_SCHED(tsk) \
.sched_task_group = &root_task_group,
#else
--
1.8.3.1