riscv: remove unreachable !HAVE_FUNCTION_GRAPH_RET_ADDR_PTR code
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Apr 2019 09:14:39 +0000 (11:14 +0200)
committerPalmer Dabbelt <palmer@sifive.com>
Thu, 25 Apr 2019 21:51:11 +0000 (14:51 -0700)
HAVE_FUNCTION_GRAPH_RET_ADDR_PTR is always defined for RISC-V.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/stacktrace.c

index a4b1d94371a0dbf6937bc0c8add512618ef1c5c6..855036c440c1c84ee369c6b233dffc2e3447518c 100644 (file)
@@ -64,12 +64,8 @@ static void notrace walk_stackframe(struct task_struct *task,
                frame = (struct stackframe *)fp - 1;
                sp = fp;
                fp = frame->fp;
-#ifdef HAVE_FUNCTION_GRAPH_RET_ADDR_PTR
                pc = ftrace_graph_ret_addr(current, NULL, frame->ra,
                                           (unsigned long *)(fp - 8));
-#else
-               pc = frame->ra - 0x4;
-#endif
        }
 }