]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: cleanup do_trap_break
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Oct 2019 17:37:30 +0000 (19:37 +0200)
committerPaul Walmsley <paul.walmsley@sifive.com>
Fri, 25 Oct 2019 23:32:38 +0000 (16:32 -0700)
commite547bc1f9c1865fcc7077424ab10d677cd788dbe
tree86ed82465290ac756176af511f8f40180487979d
parent083268f7018131abea5b0e5c7c7f770b66387c56
riscv: cleanup do_trap_break

If we always compile the get_break_insn_length inline function we can
remove the ifdefs and let dead code elimination take care of the warn
branch that is now unreadable because the report_bug stub always
returns BUG_TRAP_TYPE_BUG.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/kernel/traps.c