Thread (32 messages) 32 messages, 4 authors, 2023-02-07

Re: [PATCH 10/22] mips/cpu: Make sure play_dead() doesn't return

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2023-02-06 22:37:13
Also in: linux-alpha, linux-mips, linux-sh, lkml, loongarch, sparclinux

On 2/3/23 14: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.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help