diff options
Diffstat (limited to 'arch/score/kernel/ptrace.c')
-rw-r--r-- | arch/score/kernel/ptrace.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/score/kernel/ptrace.c b/arch/score/kernel/ptrace.c index 174c6422b096..55836188b217 100644 --- a/arch/score/kernel/ptrace.c +++ b/arch/score/kernel/ptrace.c | |||
@@ -325,7 +325,8 @@ void ptrace_disable(struct task_struct *child) | |||
325 | } | 325 | } |
326 | 326 | ||
327 | long | 327 | long |
328 | arch_ptrace(struct task_struct *child, long request, long addr, long data) | 328 | arch_ptrace(struct task_struct *child, long request, |
329 | unsigned long addr, unsigned long data) | ||
329 | { | 330 | { |
330 | int ret; | 331 | int ret; |
331 | unsigned long __user *datap = (void __user *)data; | 332 | unsigned long __user *datap = (void __user *)data; |
@@ -335,14 +336,14 @@ arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
335 | ret = copy_regset_to_user(child, &user_score_native_view, | 336 | ret = copy_regset_to_user(child, &user_score_native_view, |
336 | REGSET_GENERAL, | 337 | REGSET_GENERAL, |
337 | 0, sizeof(struct pt_regs), | 338 | 0, sizeof(struct pt_regs), |
338 | (void __user *)datap); | 339 | datap); |
339 | break; | 340 | break; |
340 | 341 | ||
341 | case PTRACE_SETREGS: | 342 | case PTRACE_SETREGS: |
342 | ret = copy_regset_from_user(child, &user_score_native_view, | 343 | ret = copy_regset_from_user(child, &user_score_native_view, |
343 | REGSET_GENERAL, | 344 | REGSET_GENERAL, |
344 | 0, sizeof(struct pt_regs), | 345 | 0, sizeof(struct pt_regs), |
345 | (const void __user *)datap); | 346 | datap); |
346 | break; | 347 | break; |
347 | 348 | ||
348 | default: | 349 | default: |