lkml.org 
[lkml]   [2016]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] sched, cgroup: enclose root_task_group with macro CONFIG_CGROUP_SCHED.
Date
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


\
 
 \ /
  Last update: 2016-10-30 11:29    [W:0.042 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site