summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/ptrace.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2019-02-06 01:25:11 +0100
committerEric W. Biederman <ebiederm@xmission.com>2019-05-29 16:30:48 +0200
commit28d42ea14e489047caeaa89496a3ad7e0ae6a49f (patch)
tree895bd73d7e510332abd37978ffba288a0ebd202d /arch/x86/include/asm/ptrace.h
parentsignal: Remove task parameter from force_sig_mceerr (diff)
downloadlinux-28d42ea14e489047caeaa89496a3ad7e0ae6a49f.tar.xz
linux-28d42ea14e489047caeaa89496a3ad7e0ae6a49f.zip
signal/x86: Remove task parameter from send_sigtrap
The send_sigtrap function is always called with task == current. Make that explicit by removing the task parameter. This also makes it clear that the x86 send_sigtrap passes current into force_sig_fault. Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'arch/x86/include/asm/ptrace.h')
-rw-r--r--arch/x86/include/asm/ptrace.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/include/asm/ptrace.h b/arch/x86/include/asm/ptrace.h
index 8a7fc0cca2d1..28779bf7951f 100644
--- a/arch/x86/include/asm/ptrace.h
+++ b/arch/x86/include/asm/ptrace.h
@@ -102,8 +102,7 @@ extern unsigned long profile_pc(struct pt_regs *regs);
extern unsigned long
convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);
-extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs,
- int error_code, int si_code);
+extern void send_sigtrap(struct pt_regs *regs, int error_code, int si_code);
static inline unsigned long regs_return_value(struct pt_regs *regs)