Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754484AbcJ3K2M (ORCPT ); Sun, 30 Oct 2016 06:28:12 -0400 Received: from cmccmta1.chinamobile.com ([221.176.66.79]:17986 "EHLO cmccmta1.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753613AbcJ3K2K (ORCPT ); Sun, 30 Oct 2016 06:28:10 -0400 X-Greylist: delayed 367 seconds by postgrey-1.27 at vger.kernel.org; Sun, 30 Oct 2016 06:28:10 EDT X-RM-TRANSID: 2ee35815c9c6b24-0e904 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2eea5815c9c3365-a6431 From: Haishuang Yan To: Ingo Molnar , Andy Lutomirski , "Peter Zijlstra (Intel)" Cc: linux-kernel@vger.kernel.org, Haishuang Yan Subject: [PATCH] sched, cgroup: enclose root_task_group with macro CONFIG_CGROUP_SCHED. Date: Sun, 30 Oct 2016 18:21:16 +0800 Message-Id: <1477822876-41902-1-git-send-email-yanhaishuang@cmss.chinamobile.com> X-Mailer: git-send-email 2.5.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 714 Lines: 28 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 --- 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