aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/arm64/kernel/smp.c
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2023-02-16 10:42:01 -0800
committerJosh Poimboeuf <jpoimboe@kernel.org>2023-03-06 15:34:04 -0800
commit9bdc61ef27db5eaac48f1cc5deb8224603e79c89 (patch)
tree791bbb57c9b31f0a8d6156d0d8d566793ef81d47 /arch/arm64/kernel/smp.c
parentarm/cpu: Add unreachable() to arch_cpu_idle_dead() (diff)
downloadwireguard-linux-9bdc61ef27db5eaac48f1cc5deb8224603e79c89.tar.xz
wireguard-linux-9bdc61ef27db5eaac48f1cc5deb8224603e79c89.zip
arm64/cpu: Mark cpu_die() __noreturn
cpu_die() doesn't return. Annotate it as such. By extension this also makes arch_cpu_idle_dead() noreturn. Acked-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Link: https://lkml.kernel.org/r/20230216184157.4hup6y6mmspr2kll@treble Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/smp.c')
-rw-r--r--arch/arm64/kernel/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c
index 4e8327264255..d5d09a18b4f8 100644
--- a/arch/arm64/kernel/smp.c
+++ b/arch/arm64/kernel/smp.c
@@ -361,7 +361,7 @@ void __cpu_die(unsigned int cpu)
* Called from the idle thread for the CPU which has been shutdown.
*
*/
-void cpu_die(void)
+void __noreturn cpu_die(void)
{
unsigned int cpu = smp_processor_id();
const struct cpu_operations *ops = get_cpu_ops(cpu);