From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753912AbcB2LBm (ORCPT ); Mon, 29 Feb 2016 06:01:42 -0500 Received: from torg.zytor.com ([198.137.202.12]:52992 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752703AbcB2LBl (ORCPT ); Mon, 29 Feb 2016 06:01:41 -0500 Date: Mon, 29 Feb 2016 03:00:20 -0800 From: tip-bot for Josh Poimboeuf Message-ID: Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, mmarek@suse.cz, namhyung@gmail.com, bernd@petrovitsch.priv.at, torvalds@linux-foundation.org, chris.j.arges@canonical.com, palves@redhat.com, peterz@infradead.org, jslaby@suse.cz, mingo@kernel.org, akpm@linux-foundation.org, luto@kernel.org, hpa@zytor.com, bp@alien8.de, acme@kernel.org, jpoimboe@redhat.com Reply-To: jslaby@suse.cz, peterz@infradead.org, mingo@kernel.org, palves@redhat.com, torvalds@linux-foundation.org, chris.j.arges@canonical.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, mmarek@suse.cz, namhyung@gmail.com, bernd@petrovitsch.priv.at, bp@alien8.de, jpoimboe@redhat.com, acme@kernel.org, luto@kernel.org, hpa@zytor.com, akpm@linux-foundation.org In-Reply-To: References: To: linux-tip-commits@vger.kernel.org Subject: [tip:core/objtool] sched: Always inline context_switch() Git-Commit-ID: 049369487e2068294b61cee19233be0ffac7d243 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 049369487e2068294b61cee19233be0ffac7d243 Gitweb: http://git.kernel.org/tip/049369487e2068294b61cee19233be0ffac7d243 Author: Josh Poimboeuf AuthorDate: Sun, 28 Feb 2016 22:22:39 -0600 Committer: Ingo Molnar CommitDate: Mon, 29 Feb 2016 08:35:11 +0100 sched: Always inline context_switch() When CONFIG_GCOV is enabled, gcc decides to put context_switch() out-of-line, which is inconsistent with its normal behavior. It also causes an objtool warning because __schedule() no longer inlines context_switch(), so the "STACK_FRAME_NON_STANDARD(__schedule)" statement loses its effect. Signed-off-by: Josh Poimboeuf Cc: Andrew Morton Cc: Andy Lutomirski Cc: Arnaldo Carvalho de Melo Cc: Bernd Petrovitsch Cc: Borislav Petkov Cc: Chris J Arges Cc: Jiri Slaby Cc: Linus Torvalds Cc: Michal Marek Cc: Namhyung Kim Cc: Pedro Alves Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: live-patching@vger.kernel.org Link: http://lkml.kernel.org/r/d62aee926b6e303394e34a06999a964dc2773cf6.1456719558.git.jpoimboe@redhat.com Signed-off-by: Ingo Molnar --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 641043d..bb0daab 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -2763,7 +2763,7 @@ asmlinkage __visible void schedule_tail(struct task_struct *prev) /* * context_switch - switch to the new MM and the new thread's register state. */ -static inline struct rq * +static __always_inline struct rq * context_switch(struct rq *rq, struct task_struct *prev, struct task_struct *next) {