summaryrefslogtreecommitdiff
path: root/arch/mips/loongson64
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2023-02-13 23:05:44 -0800
committerJosh Poimboeuf <jpoimboe@kernel.org>2023-03-08 08:44:23 -0800
commita80ceed6c9c24088d7a2e3c414eae1fe88a8ccbe (patch)
tree2b792896414739ebec5194beb924eb245b4c7fff /arch/mips/loongson64
parent142dbcf3b6a93ecfe8ccbee60c611175f5459c23 (diff)
downloadlwn-a80ceed6c9c24088d7a2e3c414eae1fe88a8ccbe.tar.gz
lwn-a80ceed6c9c24088d7a2e3c414eae1fe88a8ccbe.zip
mips/cpu: Make sure play_dead() doesn't return
play_dead() doesn't return. Make that more explicit with a BUG(). BUG() is preferable to unreachable() because BUG() is a more explicit failure mode and avoids undefined behavior like falling off the edge of the function into whatever code happens to be next. Acked-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Link: https://lore.kernel.org/r/b195e4da190bb06b7d4af15d66ce6129e2347630.1676358308.git.jpoimboe@kernel.org Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'arch/mips/loongson64')
-rw-r--r--arch/mips/loongson64/smp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/loongson64/smp.c b/arch/mips/loongson64/smp.c
index 4e24b317e7cb..df8d789ede3c 100644
--- a/arch/mips/loongson64/smp.c
+++ b/arch/mips/loongson64/smp.c
@@ -823,6 +823,7 @@ out:
state_addr = &per_cpu(cpu_state, cpu);
mb();
play_dead_at_ckseg1(state_addr);
+ BUG();
}
static int loongson3_disable_clock(unsigned int cpu)