From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752737AbdLHIYg (ORCPT ); Fri, 8 Dec 2017 03:24:36 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:37854 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752609AbdLHIYd (ORCPT ); Fri, 8 Dec 2017 03:24:33 -0500 X-Google-Smtp-Source: AGs4zMbv9AdOycnquLyqL32OoQWyQxYuo5rNvqR3Ln2HFNtrYpsN4AxHeS6jAjiobr1Xu4+9SKtl5w== From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Peter Zijlstra , Martin Schwidefsky Cc: Steven Rostedt , Petr Mladek , LKML , linux-pm@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, Sergey Senozhatsky , Sergey Senozhatsky Subject: [PATCH] sched/autogroup: move sched.h include Date: Fri, 8 Dec 2017 17:24:22 +0900 Message-Id: <20171208082422.5021-1-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171208025616.16267-2-sergey.senozhatsky@gmail.com> References: <20171208025616.16267-2-sergey.senozhatsky@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move local "sched.h" include to the bottom. sched.h defines several macros that are getting redefined in ARCH-specific code, for instance, finish_arch_post_lock_switch() and prepare_arch_switch(), so we need ARCH-specific definitions to come in first. Suggested-by: Martin Schwidefsky Signed-off-by: Sergey Senozhatsky --- kernel/sched/autogroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/autogroup.c b/kernel/sched/autogroup.c index 0786227a3f48..bb4b9fe026a1 100644 --- a/kernel/sched/autogroup.c +++ b/kernel/sched/autogroup.c @@ -1,12 +1,12 @@ // SPDX-License-Identifier: GPL-2.0 -#include "sched.h" - #include #include #include #include #include +#include "sched.h" + unsigned int __read_mostly sysctl_sched_autogroup_enabled = 1; static struct autogroup autogroup_default; static atomic_t autogroup_seq_nr; -- 2.15.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergey Senozhatsky Subject: [PATCH] sched/autogroup: move sched.h include Date: Fri, 8 Dec 2017 17:24:22 +0900 Message-ID: <20171208082422.5021-1-sergey.senozhatsky@gmail.com> References: <20171208025616.16267-2-sergey.senozhatsky@gmail.com> Return-path: In-Reply-To: <20171208025616.16267-2-sergey.senozhatsky@gmail.com> Sender: owner-linux-mm@kvack.org To: Peter Zijlstra , Martin Schwidefsky Cc: Steven Rostedt , Petr Mladek , LKML , linux-pm@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, Sergey Senozhatsky , Sergey Senozhatsky List-Id: linux-pm@vger.kernel.org Move local "sched.h" include to the bottom. sched.h defines several macros that are getting redefined in ARCH-specific code, for instance, finish_arch_post_lock_switch() and prepare_arch_switch(), so we need ARCH-specific definitions to come in first. Suggested-by: Martin Schwidefsky Signed-off-by: Sergey Senozhatsky --- kernel/sched/autogroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/autogroup.c b/kernel/sched/autogroup.c index 0786227a3f48..bb4b9fe026a1 100644 --- a/kernel/sched/autogroup.c +++ b/kernel/sched/autogroup.c @@ -1,12 +1,12 @@ // SPDX-License-Identifier: GPL-2.0 -#include "sched.h" - #include #include #include #include #include +#include "sched.h" + unsigned int __read_mostly sysctl_sched_autogroup_enabled = 1; static struct autogroup autogroup_default; static atomic_t autogroup_seq_nr; -- 2.15.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org