diff options
author | 2023-02-13 23:05:51 -0800 | |
---|---|---|
committer | 2023-03-08 08:44:26 -0800 | |
commit | a02f50b573b3c90a3633a5ab67435fe4c0de144d (patch) | |
tree | 80cb5a9be71a89dac38d8484392cf76c0b029bd5 /scripts/generate_rust_analyzer.py | |
parent | sparc/cpu: Mark cpu_play_dead() __noreturn (diff) | |
download | linux-rng-a02f50b573b3c90a3633a5ab67435fe4c0de144d.tar.xz linux-rng-a02f50b573b3c90a3633a5ab67435fe4c0de144d.zip |
x86/cpu: Make sure play_dead() doesn't return
After commit 076cbf5d2163 ("x86/xen: don't let xen_pv_play_dead()
return"), play_dead() never returns. 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.
Link: https://lore.kernel.org/r/11e6ac1cf10f92967882926e3ac16287b50642f2.1676358308.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions