diff options
author | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-02-13 23:05:54 -0800 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-03-08 08:44:27 -0800 |
commit | 69dee6f0338a20c76a7bc61c0a6b59f25e1b25c8 (patch) | |
tree | c13b5defb058fe0de73c66976f9750055b6963cd | |
parent | d08e12e8126ec88d6cb1a7eb160d8d7b52c8699f (diff) | |
download | linux-69dee6f0338a20c76a7bc61c0a6b59f25e1b25c8.tar.gz |
xtensa/cpu: Mark cpu_die() __noreturn
cpu_die() doesn't return. Annotate it as such. By extension this also
makes arch_cpu_idle_dead() noreturn.
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Link: https://lore.kernel.org/r/ad801544cab7c26a0f3bbf7cfefb67303f4cd866.1676358308.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
-rw-r--r-- | arch/xtensa/include/asm/smp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/include/asm/smp.h b/arch/xtensa/include/asm/smp.h index 4e43f5643891..5dc5bf8cdd77 100644 --- a/arch/xtensa/include/asm/smp.h +++ b/arch/xtensa/include/asm/smp.h @@ -33,7 +33,7 @@ void show_ipi_list(struct seq_file *p, int prec); void __cpu_die(unsigned int cpu); int __cpu_disable(void); -void cpu_die(void); +void __noreturn cpu_die(void); void cpu_restart(void); #endif /* CONFIG_HOTPLUG_CPU */ |