Commit 25a6917c authored by Josh Poimboeuf's avatar Josh Poimboeuf Committed by Peter Zijlstra

init: Mark start_kernel() __noreturn

Now that arch_call_rest_init() is __noreturn, mark its caller
start_kernel() __noreturn.
Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/7069acf026a195f26a88061227fba5a3b0337b9a.1681342859.git.jpoimboe@kernel.org
parent 9ea7e6b6
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
/* Define the prototype for start_kernel here, rather than cluttering /* Define the prototype for start_kernel here, rather than cluttering
up something else. */ up something else. */
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 __init __noreturn arch_call_rest_init(void);
extern void __ref __noreturn rest_init(void); extern void __ref __noreturn rest_init(void);
......
...@@ -937,7 +937,7 @@ static void __init print_unknown_bootoptions(void) ...@@ -937,7 +937,7 @@ static void __init print_unknown_bootoptions(void)
memblock_free(unknown_options, len); memblock_free(unknown_options, len);
} }
asmlinkage __visible void __init __no_sanitize_address start_kernel(void) asmlinkage __visible void __init __no_sanitize_address __noreturn start_kernel(void)
{ {
char *command_line; char *command_line;
char *after_dashes; char *after_dashes;
......
...@@ -222,6 +222,7 @@ static bool __dead_end_function(struct objtool_file *file, struct symbol *func, ...@@ -222,6 +222,7 @@ static bool __dead_end_function(struct objtool_file *file, struct symbol *func,
"rewind_stack_and_make_dead", "rewind_stack_and_make_dead",
"sev_es_terminate", "sev_es_terminate",
"snp_abort", "snp_abort",
"start_kernel",
"stop_this_cpu", "stop_this_cpu",
"usercopy_abort", "usercopy_abort",
"xen_cpu_bringup_again", "xen_cpu_bringup_again",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment