Skip to content

Commit 4264178

Browse files
committed
ptrace: Remove unused regs argument from ptrace_report_syscall
Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: "Eric W. Biederman" <[email protected]>
1 parent 6707d0f commit 4264178

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/linux/tracehook.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ struct linux_binprm;
5454
/*
5555
* ptrace report for syscall entry and exit looks identical.
5656
*/
57-
static inline int ptrace_report_syscall(struct pt_regs *regs,
58-
unsigned long message)
57+
static inline int ptrace_report_syscall(unsigned long message)
5958
{
6059
int ptrace = current->ptrace;
6160

@@ -102,7 +101,7 @@ static inline int ptrace_report_syscall(struct pt_regs *regs,
102101
static inline __must_check int tracehook_report_syscall_entry(
103102
struct pt_regs *regs)
104103
{
105-
return ptrace_report_syscall(regs, PTRACE_EVENTMSG_SYSCALL_ENTRY);
104+
return ptrace_report_syscall(PTRACE_EVENTMSG_SYSCALL_ENTRY);
106105
}
107106

108107
/**
@@ -127,7 +126,7 @@ static inline void tracehook_report_syscall_exit(struct pt_regs *regs, int step)
127126
if (step)
128127
user_single_step_report(regs);
129128
else
130-
ptrace_report_syscall(regs, PTRACE_EVENTMSG_SYSCALL_EXIT);
129+
ptrace_report_syscall(PTRACE_EVENTMSG_SYSCALL_EXIT);
131130
}
132131

133132
/**

0 commit comments

Comments
 (0)