From nobody Wed Dec 17 20:58:43 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93AC9C77B76 for ; Mon, 17 Apr 2023 10:51:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230447AbjDQKvP (ORCPT ); Mon, 17 Apr 2023 06:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230296AbjDQKut (ORCPT ); Mon, 17 Apr 2023 06:50:49 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E86017690; Mon, 17 Apr 2023 03:50:03 -0700 (PDT) Date: Mon, 17 Apr 2023 10:46:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1681728408; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zd9+BPhdTSoYfBjHrlvprQxOAwNDesh2RaIgh/3N3uI=; b=Nf/3uSKwBO93jCeGRdBr0IIex+XWkI+OSZnPZeTGx4NKkqdk2aJHSmNI1HmW+QH9VHFBhK InYe4HkVCNXVJEfT1C15p7QzK4VAxsPowH4752rU2ZCwILlsUPOWoqvqeG+boAS4I/BBAg UzsNPiQ8kKRykNf3SBy4OIrKu33VZ28XqJtb3zLkz9VupdAIgbU8HwvPvzRpZBzgO5sCYN gyh2xPvpweI+CvIFBr+uNhZaupz1YbRQhYhzeyhdjyi+C0/aa6fm4srJKMju/IbFa7T6FV bop8W5Y71EemMjGZTurZ5kH7OSVUmJUn1aUNIL+0jdbRz0MLG82EQUCoEbPmVw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1681728408; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zd9+BPhdTSoYfBjHrlvprQxOAwNDesh2RaIgh/3N3uI=; b=PWp4+BbZ5GKzlSMv4UvSKAG0KfAxXgWU4k5AHusjyi4B5POftuleddfedg6YkJ73f4ape1 FndtWhsWta1MVWDQ== From: "tip-bot2 for Josh Poimboeuf" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] init: Mark start_kernel() __noreturn Cc: Josh Poimboeuf , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <7069acf026a195f26a88061227fba5a3b0337b9a.1681342859.git.jpoimboe@kernel.org> References: <7069acf026a195f26a88061227fba5a3b0337b9a.1681342859.git.jpoimboe@kernel.org> MIME-Version: 1.0 Message-ID: <168172840785.404.969854172131344642.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the objtool/core branch of tip: Commit-ID: 25a6917ca63ad4470bf88535c56f0dec72b570fe Gitweb: https://git.kernel.org/tip/25a6917ca63ad4470bf88535c56f0dec7= 2b570fe Author: Josh Poimboeuf AuthorDate: Wed, 12 Apr 2023 16:49:32 -07:00 Committer: Peter Zijlstra CommitterDate: Fri, 14 Apr 2023 17:31:23 +02:00 init: Mark start_kernel() __noreturn Now that arch_call_rest_init() is __noreturn, mark its caller start_kernel() __noreturn. Signed-off-by: Josh Poimboeuf Signed-off-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/7069acf026a195f26a88061227fba5a3b0337b9a.16= 81342859.git.jpoimboe@kernel.org --- include/linux/start_kernel.h | 2 +- init/main.c | 2 +- tools/objtool/check.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/start_kernel.h b/include/linux/start_kernel.h index 864921e..a9806a4 100644 --- a/include/linux/start_kernel.h +++ b/include/linux/start_kernel.h @@ -8,7 +8,7 @@ /* Define the prototype for start_kernel here, rather than cluttering up something else. */ =20 -extern asmlinkage void __init start_kernel(void); +extern asmlinkage void __init __noreturn start_kernel(void); extern void __init __noreturn arch_call_rest_init(void); extern void __ref __noreturn rest_init(void); =20 diff --git a/init/main.c b/init/main.c index 161ed95..65aab4e 100644 --- a/init/main.c +++ b/init/main.c @@ -937,7 +937,7 @@ static void __init print_unknown_bootoptions(void) memblock_free(unknown_options, len); } =20 -asmlinkage __visible void __init __no_sanitize_address start_kernel(void) +asmlinkage __visible void __init __no_sanitize_address __noreturn start_ke= rnel(void) { char *command_line; char *after_dashes; diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 3d7227f..9aaad9d 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -222,6 +222,7 @@ static bool __dead_end_function(struct objtool_file *fi= le, struct symbol *func, "rewind_stack_and_make_dead", "sev_es_terminate", "snp_abort", + "start_kernel", "stop_this_cpu", "usercopy_abort", "xen_cpu_bringup_again",