sst-linux/arch/loongarch/kernel
Tiezhu Yang 12333d3362 LoongArch: Convert unreachable() to BUG()
commit da64a2359092ceec4f9dea5b329d0aef20104217 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-03-13 12:53:11 +01:00
..
.gitignore
access-helper.h
acpi.c
asm-offsets.c
cacheinfo.c
cpu-probe.c
crash_dump.c
dma.c
efi-header.S
efi.c
elf.c
entry.S
env.c
fpu.S
genex.S
head.S
idle.c
image-vars.h
inst.c
io.c
irq.c
machine_kexec.c LoongArch: Convert unreachable() to BUG() 2025-03-13 12:53:11 +01:00
Makefile
mem.c
module-sections.c
module.c
numa.c
perf_event.c
perf_regs.c
proc.c
process.c LoongArch: Don't crash in stack_top() for tasks without vDSO 2024-11-01 01:56:03 +01:00
ptrace.c
relocate_kernel.S
reset.c
setup.c LoongArch: Get correct cores_per_package for SMT systems 2024-11-01 01:56:06 +01:00
signal.c
smp.c
stacktrace.c
switch.S
syscall.c
sysrq.c
time.c
topology.c
traps.c
unwind_guess.c
unwind_prologue.c
vdso.c LoongArch: Fix build errors due to backported TIMENS 2024-11-08 16:26:48 +01:00
vmlinux.lds.S