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)
commite8f44c50dfe75315d1ff6efc837d62cbe7368c9b
tree86ed82465290ac756176af511f8f40180487979d
parenta6d9e2672609653146cd9f4063f3d30619828787
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