summaryrefslogtreecommitdiff
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2024-11-28 10:39:02 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 11:35:54 +0100
commit9e4a827d2a38dd94441ef166290d5d0d4417f022 (patch)
tree99bfaeaf427a0d29bdf6b514223187b18b178260 /lib/Kconfig.debug
parent058fd5b2bac3f1a3858c3e01008915857541c25c (diff)
x86: Convert unreachable() to BUG()
[ Upstream commit 2190966fbc14ca2cd4ea76eefeb96a47d8e390df ] Avoid unreachable() as it can (and will in the absence of UBSAN) generate fallthrough code. Use BUG() so we get a UD2 trap (with unreachable annotation). Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Josh Poimboeuf <jpoimboe@kernel.org> Link: https://lore.kernel.org/r/20241128094312.028316261@infradead.org Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions