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:
parent
a02f50b573
commit
eab89405b6
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue