Messages in this thread Patch in this message |  | | From | Haishuang Yan <> | Subject | [PATCH] sched, cgroup: enclose root_task_group with macro CONFIG_CGROUP_SCHED. | Date | Sun, 30 Oct 2016 18:21:16 +0800 |
| |
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@cmss.chinamobile.com> --- 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
|  |