Skip to content
Snippets Groups Projects
Commit e9e7ff24 authored by David Abdurachmanov's avatar David Abdurachmanov Committed by 谢秀奇
Browse files

riscv: fix trace_sys_exit hook


[ Upstream commit 775800b0 ]

Fix compilation error.

Signed-off-by: default avatarDavid Abdurachmanov <david.abdurachmanov@gmail.com>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 82cf7c4d
No related branches found
No related tags found
No related merge requests found
...@@ -120,6 +120,6 @@ void do_syscall_trace_exit(struct pt_regs *regs) ...@@ -120,6 +120,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
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment