# Re: \[PATCH v2 10/24\] mips/cpu: Make sure play\_dead() doesn't return

- From: Philippe Mathieu-Daudé \<hidden\>
- Date: 2023-02-14 07:50:55 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2023/02/2101078
- Thread: https://ratatoskr.run/linux-alpha/2023/02/2101038/t.md

```text
On 14/2/23 08:05, Josh Poimboeuf wrote:
> 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>
> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
> ---
>   arch/mips/kernel/smp-bmips.c | 2 ++
>   arch/mips/loongson64/smp.c   | 1 +
>   2 files changed, 3 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <redacted>

```
