]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/cpu: Mark play_dead() __noreturn
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Feb 2023 07:05:52 +0000 (23:05 -0800)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 8 Mar 2023 16:44:26 +0000 (08:44 -0800)
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>
arch/x86/include/asm/smp.h
arch/x86/kernel/process.c

index 8f628e08b25ac8241394e3e7a34377891b414f5b..e6d1d2810e38433f19ab3833d86951740d6f2618 100644 (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();
index b650cde3f64db5592a394d3e827fc897467eabcd..f1ec36caf1d86530fce60a91df8d53160d13f445 100644 (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();
 }