From: Josh Poimboeuf Date: Tue, 14 Feb 2023 07:05:40 +0000 (-0800) Subject: ia64/cpu: Mark play_dead() __noreturn X-Git-Tag: v6.4-rc1~96^2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93c0edffbc92abe1efb8c7081df0cc1577a79ace;p=thirdparty%2Flinux.git ia64/cpu: Mark play_dead() __noreturn play_dead() doesn't return. Annotate it as such. By extension this also makes arch_cpu_idle_dead() noreturn. Reviewed-by: Philippe Mathieu-Daudé Link: https://lore.kernel.org/r/7575bb38417bd8bcb5be980443f99cab29319342.1676358308.git.jpoimboe@kernel.org Signed-off-by: Josh Poimboeuf --- diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c index f6195a0a00aeb..78f5794b2dde7 100644 --- a/arch/ia64/kernel/process.c +++ b/arch/ia64/kernel/process.c @@ -201,7 +201,7 @@ __setup("nohalt", nohalt_setup); #ifdef CONFIG_HOTPLUG_CPU /* We don't actually take CPU down, just spin without interrupts. */ -static inline void play_dead(void) +static inline void __noreturn play_dead(void) { unsigned int this_cpu = smp_processor_id(); @@ -219,7 +219,7 @@ static inline void play_dead(void) BUG(); } #else -static inline void play_dead(void) +static inline void __noreturn play_dead(void) { BUG(); }