From patchwork Fri Dec 8 08:24:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 10101749 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0655160360 for ; Fri, 8 Dec 2017 08:24:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E943928B2B for ; Fri, 8 Dec 2017 08:24:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE13828B2D; Fri, 8 Dec 2017 08:24:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A707F28B2B for ; Fri, 8 Dec 2017 08:24:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752625AbdLHIYf (ORCPT ); Fri, 8 Dec 2017 03:24:35 -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 Received: by mail-pf0-f195.google.com with SMTP id n6so6782126pfa.4; Fri, 08 Dec 2017 00:24:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eqHhrX8tsYfCDCrRjWI+G3cqNtcmWbuO4E9OkFaNnxk=; b=cUg3gZSC1hs1qtI0je0n3N75HrlplAJNwPw2KuRbhiiJBNZhKIPURauUMMJ9tSO0AJ fbQHMOe2g4Tq3kU6rvUhix61zyDmxNxEQ5yMfx/wiaJG04W0ZfnKze8tH4dFS0VwmAmT gmnk46GfM7mQXTnB6HG2AA+54f8TZfA653uff7Ui+qT2Sjsd2DTB/zB8nNNNrwA+SuiM 9NUjRfFUDa2ereDcA+/4/HGd+zIQD6RkSho+4R+dyXL+gbO7YiSL28IUszn+GdfJXMtI Qw0cT4DmvM5oKCzoPaXUuxKdczqCD6hEXwKvuKg4nI6UgBsZZnaiMrZWvLvf0/hHzczs xi0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eqHhrX8tsYfCDCrRjWI+G3cqNtcmWbuO4E9OkFaNnxk=; b=fhog1e0ux5YzUfdcsJGuqbyOJsg0rItiiEWt9X9xUgw69U5tx5XyBj8Thlq0kdMFWn YArRDnEZIF8dKM3Prc8pfdy0OnkQ3r2nGT8c9bDHr0F7X7FyAtgX2+j6Mkv1iMVej/sv AKDJ+yUZLkL3H9wfJZ7rHQBpLTCYgON2MQa/3bz1zukMduiJmznzq9qU3sd13LztXKi3 TYlfqKwcW0V5wg3mk0JsnheeXAmWcYHvneCRloNFXOlc5bBduXob6QKGckdR01fnx924 72bfjvNMvCWK1NpE3PNeV6XNQeILSHoGkczkpJs/FlNBOjDSgQdHXPmfEJDw47iN9yIX MRPg== X-Gm-Message-State: AJaThX6Y7TYxj757sXndKs3iTXp/gnLfZQP68nbcO1eBKAjySaBB+FOY /hyTzxGws6f1In5WOU12msM= X-Google-Smtp-Source: AGs4zMbv9AdOycnquLyqL32OoQWyQxYuo5rNvqR3Ln2HFNtrYpsN4AxHeS6jAjiobr1Xu4+9SKtl5w== X-Received: by 10.159.255.7 with SMTP id bi7mr28903390plb.221.1512721472599; Fri, 08 Dec 2017 00:24:32 -0800 (PST) Received: from localhost.localdomain ([110.70.56.230]) by smtp.gmail.com with ESMTPSA id c4sm11614217pgn.93.2017.12.08.00.24.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Dec 2017 00:24:31 -0800 (PST) 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Peter Zijlstra (Intel) --- 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;