diff options
author | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-02-14 08:05:40 +0100 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-03-07 00:34:05 +0100 |
commit | 93c0edffbc92abe1efb8c7081df0cc1577a79ace (patch) | |
tree | 7a69520dfc04a79f5d4674f464cc97dfea8886d7 /arch/ia64 | |
parent | csky/cpu: Make sure arch_cpu_idle_dead() doesn't return (diff) | |
download | linux-93c0edffbc92abe1efb8c7081df0cc1577a79ace.tar.xz linux-93c0edffbc92abe1efb8c7081df0cc1577a79ace.zip |
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é <philmd@linaro.org>
Link: https://lore.kernel.org/r/7575bb38417bd8bcb5be980443f99cab29319342.1676358308.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/kernel/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c index f6195a0a00ae..78f5794b2dde 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(); } |