diff options
author | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-02-16 10:38:55 -0800 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-03-06 15:34:04 -0800 |
commit | b40c7d6d31ac2f6b78371cdc08bc1b6b62f01375 (patch) | |
tree | c18b0e4eefbb114af9dafe584336613e615f15e6 | |
parent | 550db6795e9bb0b1b40f9c52bbe3d0ee735dbdb0 (diff) | |
download | lwn-b40c7d6d31ac2f6b78371cdc08bc1b6b62f01375.tar.gz lwn-b40c7d6d31ac2f6b78371cdc08bc1b6b62f01375.zip |
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 <jpoimboe@kernel.org>
-rw-r--r-- | arch/arm/kernel/smp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 0b8c25763adc..441ea5cff390 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 */ |