diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2025-03-08 08:50:45 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2025-03-08 08:50:45 +0300 |
commit | da64a2359092ceec4f9dea5b329d0aef20104217 (patch) | |
tree | 0609cb77e488b29d159c6603daa5d747672bcdc1 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 7eb172143d5508b4da468ed59ee857c6e5e01da6 (diff) | |
download | linux-da64a2359092ceec4f9dea5b329d0aef20104217.tar.xz |
LoongArch: Convert unreachable() to BUG()
When compiling on LoongArch, there exists the following objtool warning
in arch/loongarch/kernel/machine_kexec.o:
kexec_reboot() falls through to next function crash_shutdown_secondary()
Avoid using unreachable() as it can (and will in the absence of UBSAN)
generate fall-through code. Use BUG() so we get a "break BRK_BUG" trap
(with unreachable annotation).
Cc: stable@vger.kernel.org # 6.12+
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions