Commit eab89405 authored by Josh Poimboeuf's avatar Josh Poimboeuf

x86/cpu: Mark play_dead() __noreturn

play_dead() doesn't return.  Annotate it as such.  By extension this
also makes arch_cpu_idle_dead() noreturn.

Link: https://lore.kernel.org/r/f3a069e6869c51ccfdda656b76882363bc9fcfa4.1676358308.git.jpoimboe@kernel.orgSigned-off-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
parent a02f50b5
...@@ -93,7 +93,7 @@ static inline void __cpu_die(unsigned int cpu) ...@@ -93,7 +93,7 @@ static inline void __cpu_die(unsigned int cpu)
smp_ops.cpu_die(cpu); smp_ops.cpu_die(cpu);
} }
static inline void play_dead(void) static inline void __noreturn play_dead(void)
{ {
smp_ops.play_dead(); smp_ops.play_dead();
BUG(); BUG();
......
...@@ -715,7 +715,7 @@ static bool x86_idle_set(void) ...@@ -715,7 +715,7 @@ static bool x86_idle_set(void)
} }
#ifndef CONFIG_SMP #ifndef CONFIG_SMP
static inline void play_dead(void) static inline void __noreturn play_dead(void)
{ {
BUG(); BUG();
} }
......
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