From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758427AbcIWFe0 (ORCPT ); Fri, 23 Sep 2016 01:34:26 -0400 Received: from terminus.zytor.com ([198.137.202.10]:49252 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754636AbcIWFeX (ORCPT ); Fri, 23 Sep 2016 01:34:23 -0400 Date: Thu, 22 Sep 2016 22:33:43 -0700 From: tip-bot for Josh Poimboeuf Message-ID: Cc: hpa@zytor.com, peterz@infradead.org, jpoimboe@redhat.com, torvalds@linux-foundation.org, tglx@linutronix.de, mingo@kernel.org, fengguang.wu@intel.com, linux-kernel@vger.kernel.org Reply-To: mingo@kernel.org, fengguang.wu@intel.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, tglx@linutronix.de, jpoimboe@redhat.com, hpa@zytor.com, peterz@infradead.org In-Reply-To: <20160922212125.zbuewckqll4yur25@treble> References: <20160922212125.zbuewckqll4yur25@treble> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] objtool: Add do_task_dead() to global noreturn list Git-Commit-ID: c1fad9ef7ed14aad464972e6444e7a3bd5670f26 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: c1fad9ef7ed14aad464972e6444e7a3bd5670f26 Gitweb: http://git.kernel.org/tip/c1fad9ef7ed14aad464972e6444e7a3bd5670f26 Author: Josh Poimboeuf AuthorDate: Thu, 22 Sep 2016 16:21:25 -0500 Committer: Ingo Molnar CommitDate: Fri, 23 Sep 2016 07:28:05 +0200 objtool: Add do_task_dead() to global noreturn list objtool reports the following new warning: kernel/exit.o: warning: objtool: do_exit() falls through to next function complete_and_exit() The warning is caused by do_exit()'s new call to do_task_dead(), which is a new "noreturn" function which objtool doesn't know about yet, introduced by: 9af6528ee9b6 ("sched/core: Optimize __schedule()") ( objtool has to know all the global noreturn functions so it can follow the control flow of any functions which call them. Unfortunately they need to be hard-coded because there's no automated way to detect them. ) Reported-by: kbuild test robot Signed-off-by: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: kbuild-all@01.org Cc: tipbuild@zytor.com Link: http://lkml.kernel.org/r/20160922212125.zbuewckqll4yur25@treble Signed-off-by: Ingo Molnar --- tools/objtool/builtin-check.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/objtool/builtin-check.c b/tools/objtool/builtin-check.c index bd09d0e..143b6cd 100644 --- a/tools/objtool/builtin-check.c +++ b/tools/objtool/builtin-check.c @@ -175,6 +175,7 @@ static int __dead_end_function(struct objtool_file *file, struct symbol *func, "__stack_chk_fail", "panic", "do_exit", + "do_task_dead", "__module_put_and_exit", "complete_and_exit", "kvm_spurious_fault",