Skip to content

Commit

Permalink
ptrace: Remove unused regs argument from ptrace_report_syscall
Browse files Browse the repository at this point in the history
Link: https://lkml.kernel.org/r/20220103213312.9144-7-ebiederm@xmission.com
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
  • Loading branch information
Eric W. Biederman committed Jan 8, 2022
1 parent 6707d0f commit 4264178
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/linux/tracehook.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ struct linux_binprm;
/*
* ptrace report for syscall entry and exit looks identical.
*/
static inline int ptrace_report_syscall(struct pt_regs *regs,
unsigned long message)
static inline int ptrace_report_syscall(unsigned long message)
{
int ptrace = current->ptrace;

Expand Down Expand Up @@ -102,7 +101,7 @@ static inline int ptrace_report_syscall(struct pt_regs *regs,
static inline __must_check int tracehook_report_syscall_entry(
struct pt_regs *regs)
{
return ptrace_report_syscall(regs, PTRACE_EVENTMSG_SYSCALL_ENTRY);
return ptrace_report_syscall(PTRACE_EVENTMSG_SYSCALL_ENTRY);
}

/**
Expand All @@ -127,7 +126,7 @@ static inline void tracehook_report_syscall_exit(struct pt_regs *regs, int step)
if (step)
user_single_step_report(regs);
else
ptrace_report_syscall(regs, PTRACE_EVENTMSG_SYSCALL_EXIT);
ptrace_report_syscall(PTRACE_EVENTMSG_SYSCALL_EXIT);
}

/**
Expand Down

0 comments on commit 4264178

Please sign in to comment.