riscv: fix trace_sys_exit hook

[ Upstream commit 775800b0f1 ]

Fix compilation error.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
David Abdurachmanov
2018-12-06 16:26:34 +01:00
committed by Greg Kroah-Hartman
parent 7e710bfd75
commit 4830f352e9

View File

@@ -172,6 +172,6 @@ void do_syscall_trace_exit(struct pt_regs *regs)
#ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS #ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS
if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) if (test_thread_flag(TIF_SYSCALL_TRACEPOINT))
trace_sys_exit(regs, regs->regs[0]); trace_sys_exit(regs, regs_return_value(regs));
#endif #endif
} }