aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2012-09-26 15:30:47 -0400
committerRalf Baechle <ralf@linux-mips.org>2013-10-29 16:25:15 -0400
commit0dfa95aaa817eec8473abf5465eae135b1cf1138 (patch)
treea8ea731481a7faba8477eb98ac22e27dd936f879
parentbec9b2b2c164455e2cd1103c9059d4f8e5926416 (diff)
MIPS: ptrace: Switch syscall reporting to tracehook_report_syscall_entry().
Set ret just so __must_check is satisfied but don't use the variable for anything yet. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/kernel/ptrace.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c
index 7341318dd2d8..b996efcccc11 100644
--- a/arch/mips/kernel/ptrace.c
+++ b/arch/mips/kernel/ptrace.c
@@ -654,13 +654,15 @@ long arch_ptrace(struct task_struct *child, long request,
654 */ 654 */
655asmlinkage void syscall_trace_enter(struct pt_regs *regs) 655asmlinkage void syscall_trace_enter(struct pt_regs *regs)
656{ 656{
657 long ret = 0;
657 user_exit(); 658 user_exit();
658 659
659 /* do the secure computing check first */ 660 /* do the secure computing check first */
660 secure_computing_strict(regs->regs[2]); 661 secure_computing_strict(regs->regs[2]);
661 662
662 if (test_thread_flag(TIF_SYSCALL_TRACE)) 663 if (test_thread_flag(TIF_SYSCALL_TRACE) &&
663 ptrace_report_syscall(regs); 664 tracehook_report_syscall_entry(regs))
665 ret = -1;
664 666
665 audit_syscall_entry(__syscall_get_arch(), 667 audit_syscall_entry(__syscall_get_arch(),
666 regs->regs[2], 668 regs->regs[2],