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.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
This commit is contained in:
Josh Poimboeuf 2023-02-13 23:05:52 -08:00
parent a02f50b573
commit eab89405b6
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ static inline void __cpu_die(unsigned int cpu)
smp_ops.cpu_die(cpu);
}
static inline void play_dead(void)
static inline void __noreturn play_dead(void)
{
smp_ops.play_dead();
BUG();

View File

@ -715,7 +715,7 @@ static bool x86_idle_set(void)
}
#ifndef CONFIG_SMP
static inline void play_dead(void)
static inline void __noreturn play_dead(void)
{
BUG();
}