diff options
Diffstat (limited to 'arch/arm/kernel/ptrace.c')
-rw-r--r-- | arch/arm/kernel/ptrace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c index 897ade059f58..2491f3b406bc 100644 --- a/arch/arm/kernel/ptrace.c +++ b/arch/arm/kernel/ptrace.c | |||
@@ -374,7 +374,7 @@ static long ptrace_hbp_idx_to_num(int idx) | |||
374 | /* | 374 | /* |
375 | * Handle hitting a HW-breakpoint. | 375 | * Handle hitting a HW-breakpoint. |
376 | */ | 376 | */ |
377 | static void ptrace_hbptriggered(struct perf_event *bp, int unused, | 377 | static void ptrace_hbptriggered(struct perf_event *bp, |
378 | struct perf_sample_data *data, | 378 | struct perf_sample_data *data, |
379 | struct pt_regs *regs) | 379 | struct pt_regs *regs) |
380 | { | 380 | { |
@@ -457,7 +457,8 @@ static struct perf_event *ptrace_hbp_create(struct task_struct *tsk, int type) | |||
457 | attr.bp_type = type; | 457 | attr.bp_type = type; |
458 | attr.disabled = 1; | 458 | attr.disabled = 1; |
459 | 459 | ||
460 | return register_user_hw_breakpoint(&attr, ptrace_hbptriggered, tsk); | 460 | return register_user_hw_breakpoint(&attr, ptrace_hbptriggered, NULL, |
461 | tsk); | ||
461 | } | 462 | } |
462 | 463 | ||
463 | static int ptrace_gethbpregs(struct task_struct *tsk, long num, | 464 | static int ptrace_gethbpregs(struct task_struct *tsk, long num, |