aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/smp.h
diff options
context:
space:
mode:
authorGravatar Josh Poimboeuf <jpoimboe@kernel.org> 2023-02-13 23:05:52 -0800
committerGravatar Josh Poimboeuf <jpoimboe@kernel.org> 2023-03-08 08:44:26 -0800
commiteab89405b6b59947ee29cc21fb39ead66142c9b5 (patch)
treeafac3dd138192d3fc3bd70dfb8948d770e7d8e17 /arch/x86/include/asm/smp.h
parentx86/cpu: Make sure play_dead() doesn't return (diff)
downloadlinux-eab89405b6b59947ee29cc21fb39ead66142c9b5.tar.gz
linux-eab89405b6b59947ee29cc21fb39ead66142c9b5.tar.bz2
linux-eab89405b6b59947ee29cc21fb39ead66142c9b5.zip
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>
Diffstat (limited to 'arch/x86/include/asm/smp.h')
-rw-r--r--arch/x86/include/asm/smp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h
index 8f628e08b25a..e6d1d2810e38 100644
--- a/arch/x86/include/asm/smp.h
+++ b/arch/x86/include/asm/smp.h
@@ -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();