diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2018-09-21 18:38:41 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2018-09-27 15:53:35 -0400 |
commit | 24b8f79dd8e036da618d158b4c0295208d478c5c (patch) | |
tree | fba03330a5bceb32733973c60df4fa543cc4a6fd /arch/arm64/kernel/traps.c | |
parent | 6fa998e83ef9bcc479b0fa088de262a73e139bf8 (diff) |
signal/arm64: Remove unneeded tsk parameter from arm64_force_sig_info
Every caller passes in current for tsk so there is no need to pass
tsk. Instead make tsk a local variable initialized to current.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'arch/arm64/kernel/traps.c')
-rw-r--r-- | arch/arm64/kernel/traps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index 459eb6fb7158..24035d124608 100644 --- a/arch/arm64/kernel/traps.c +++ b/arch/arm64/kernel/traps.c | |||
@@ -231,9 +231,9 @@ static bool show_unhandled_signals_ratelimited(void) | |||
231 | return show_unhandled_signals && __ratelimit(&rs); | 231 | return show_unhandled_signals && __ratelimit(&rs); |
232 | } | 232 | } |
233 | 233 | ||
234 | void arm64_force_sig_info(struct siginfo *info, const char *str, | 234 | void arm64_force_sig_info(struct siginfo *info, const char *str) |
235 | struct task_struct *tsk) | ||
236 | { | 235 | { |
236 | struct task_struct *tsk = current; | ||
237 | unsigned int esr = tsk->thread.fault_code; | 237 | unsigned int esr = tsk->thread.fault_code; |
238 | struct pt_regs *regs = task_pt_regs(tsk); | 238 | struct pt_regs *regs = task_pt_regs(tsk); |
239 | 239 | ||
@@ -273,7 +273,7 @@ void arm64_notify_die(const char *str, struct pt_regs *regs, | |||
273 | info.si_code = sicode; | 273 | info.si_code = sicode; |
274 | info.si_addr = addr; | 274 | info.si_addr = addr; |
275 | 275 | ||
276 | arm64_force_sig_info(&info, str, current); | 276 | arm64_force_sig_info(&info, str); |
277 | } else { | 277 | } else { |
278 | die(str, regs, err); | 278 | die(str, regs, err); |
279 | } | 279 | } |
@@ -630,7 +630,7 @@ asmlinkage void bad_el0_sync(struct pt_regs *regs, int reason, unsigned int esr) | |||
630 | current->thread.fault_address = 0; | 630 | current->thread.fault_address = 0; |
631 | current->thread.fault_code = esr; | 631 | current->thread.fault_code = esr; |
632 | 632 | ||
633 | arm64_force_sig_info(&info, "Bad EL0 synchronous exception", current); | 633 | arm64_force_sig_info(&info, "Bad EL0 synchronous exception"); |
634 | } | 634 | } |
635 | 635 | ||
636 | #ifdef CONFIG_VMAP_STACK | 636 | #ifdef CONFIG_VMAP_STACK |