From: Josh Poimboeuf Date: Thu, 16 Feb 2023 18:38:55 +0000 (-0800) Subject: arm/cpu: Add unreachable() to arch_cpu_idle_dead() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b40c7d6d31ac2f6b78371cdc08bc1b6b62f01375;p=linux.git arm/cpu: Add unreachable() to arch_cpu_idle_dead() arch_cpu_idle_dead() doesn't return. Make that visible to the compiler with an unreachable() code annotation. Link: https://lkml.kernel.org/r/20230216183851.s5bnvniomq44rytu@treble Signed-off-by: Josh Poimboeuf --- diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 0b8c25763adc3..441ea5cff3901 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -382,6 +382,8 @@ void arch_cpu_idle_dead(void) : "r" (task_stack_page(current) + THREAD_SIZE - 8), "r" (current) : "r0"); + + unreachable(); } #endif /* CONFIG_HOTPLUG_CPU */