Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

init: Mark start_kernel() __noreturn

Now that arch_call_rest_init() is __noreturn, mark its caller
start_kernel() __noreturn.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/7069acf026a195f26a88061227fba5a3b0337b9a.1681342859.git.jpoimboe@kernel.org

authored by

Josh Poimboeuf and committed by
Peter Zijlstra
25a6917c 9ea7e6b6

+3 -2
+1 -1
include/linux/start_kernel.h
··· 8 8 /* Define the prototype for start_kernel here, rather than cluttering 9 9 up something else. */ 10 10 11 - extern asmlinkage void __init start_kernel(void); 11 + extern asmlinkage void __init __noreturn start_kernel(void); 12 12 extern void __init __noreturn arch_call_rest_init(void); 13 13 extern void __ref __noreturn rest_init(void); 14 14
+1 -1
init/main.c
··· 937 937 memblock_free(unknown_options, len); 938 938 } 939 939 940 - asmlinkage __visible void __init __no_sanitize_address start_kernel(void) 940 + asmlinkage __visible void __init __no_sanitize_address __noreturn start_kernel(void) 941 941 { 942 942 char *command_line; 943 943 char *after_dashes;
+1
tools/objtool/check.c
··· 222 222 "rewind_stack_and_make_dead", 223 223 "sev_es_terminate", 224 224 "snp_abort", 225 + "start_kernel", 225 226 "stop_this_cpu", 226 227 "usercopy_abort", 227 228 "xen_cpu_bringup_again",