From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f69.google.com (mail-pg0-f69.google.com [74.125.83.69]) by kanga.kvack.org (Postfix) with ESMTP id 52FF16B0033 for ; Fri, 8 Dec 2017 03:24:34 -0500 (EST) Received: by mail-pg0-f69.google.com with SMTP id a13so7467027pgt.0 for ; Fri, 08 Dec 2017 00:24:34 -0800 (PST) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id r59sor3047700plb.9.2017.12.08.00.24.32 for (Google Transport Security); Fri, 08 Dec 2017 00:24:32 -0800 (PST) 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> In-Reply-To: <20171208025616.16267-2-sergey.senozhatsky@gmail.com> References: <20171208025616.16267-2-sergey.senozhatsky@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: 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 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