ptrace: change signature of arch_ptrace()
Subsystems (15)
PATCH 54/139 ptrace: change signature of arch_ptrace()
From: Namhyung Kim <[email protected]>
Fix up the arguments to arch_ptrace() to take account of the fact that @addr and @data are now unsigned long rather than long as of a preceding patch in this series.
Signed-off-by Namhyung Kim <[email protected]>
Cc <[email protected]>
Acked-by Roland McGrath <[email protected]>
Acked-by David Howells <[email protected]>
Acked-by David S. Miller <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/alpha/kernel/ptrace.c | 7 ++++--- arch/arm/kernel/ptrace.c | 3 ++- arch/avr32/kernel/ptrace.c | 3 ++- arch/blackfin/kernel/ptrace.c | 3 ++- arch/cris/arch-v10/kernel/ptrace.c | 7 ++++--- arch/cris/arch-v32/kernel/ptrace.c | 3 ++- arch/frv/kernel/ptrace.c | 3 ++- arch/h8300/kernel/ptrace.c | 7 ++++--- arch/ia64/kernel/ptrace.c | 3 ++- arch/m32r/kernel/ptrace.c | 3 ++- arch/m68k/kernel/ptrace.c | 9 +++++---- arch/m68knommu/kernel/ptrace.c | 7 ++++--- arch/microblaze/kernel/ptrace.c | 3 ++- arch/mips/kernel/ptrace.c | 3 ++- arch/mn10300/kernel/ptrace.c | 3 ++- arch/parisc/kernel/ptrace.c | 11 ++++++----- arch/powerpc/kernel/ptrace.c | 15 ++++++++------- arch/s390/kernel/ptrace.c | 3 ++- arch/score/kernel/ptrace.c | 3 ++- arch/sh/kernel/ptrace_32.c | 21 +++++++++++---------- arch/sh/kernel/ptrace_64.c | 6 ++++-- arch/sparc/kernel/ptrace_32.c | 3 ++- arch/sparc/kernel/ptrace_64.c | 7 ++++--- arch/tile/kernel/ptrace.c | 9 ++++++--- arch/um/kernel/ptrace.c | 5 +++-- arch/um/sys-i386/ptrace.c | 4 ++-- arch/um/sys-x86_64/ptrace.c | 4 ++-- arch/x86/kernel/ptrace.c | 7 ++++--- arch/xtensa/kernel/ptrace.c | 3 ++- include/linux/ptrace.h | 3 ++- 30 files changed, 101 insertions(+), 70 deletions(-)
arch/alpha/kernel/ptrace.c renamed from arch/alpha/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +4 -3
@@ -269,7 +269,8 @@ void ptrace_disable(struct task_struct *user_disable_single_step (child); } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {unsigned long tmp;size_t copied;
@@ -292,7 +293,7 @@ long arch_ptrace(struct task_struct *chicase PTRACE_PEEKUSR :force_successful_syscall_return (); ret =get_reg (child, addr); -DBG (DBG_MEM , ("peek $%ld->%#lx\n" , addr, ret)); +DBG (DBG_MEM , ("peek $%lu->%#lx\n" , addr, ret));break ;/* When I and D space are separate, this will have to be fixed. */
@@ -302,7 +303,7 @@ long arch_ptrace(struct task_struct *chibreak ;case PTRACE_POKEUSR :/* write the specified register */ -DBG (DBG_MEM , ("poke $%ld<-%#lx\n" , addr, data)); +DBG (DBG_MEM , ("poke $%lu<-%#lx\n" , addr, data)); ret =put_reg (child, addr, data);break ;default :
arch/arm/kernel/ptrace.c renamed from arch/arm/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -1075,7 +1075,8 @@ out: }#endif -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret;
arch/avr32/kernel/ptrace.c renamed from arch/avr32/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -146,7 +146,8 @@ static int ptrace_setregs(struct task_streturn ret; } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret;
arch/blackfin/kernel/ptrace.c renamed from arch/blackfin/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -240,7 +240,8 @@ void user_disable_single_step(struct tasclear_tsk_thread_flag (child,TIF_SINGLESTEP ); } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret;unsigned long __user *datap = (unsigned long __user *)data;
arch/cris/arch-v10/kernel/ptrace.c renamed from arch/cris/arch-v10/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +4 -3
@@ -76,7 +76,8 @@ ptrace_disable(struct task_struct *child* (in user space) where the result of the ptrace call is written (instead of * being returned). */ -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret;unsigned long __user *datap = (unsigned long __user *)data;
@@ -141,7 +142,7 @@ long arch_ptrace(struct task_struct *chibreak ; } - data +=sizeof (long ); + data +=sizeof (unsigned long ); }break ;
@@ -165,7 +166,7 @@ long arch_ptrace(struct task_struct *chi }put_reg (child, i, tmp); - data +=sizeof (long ); + data +=sizeof (unsigned long ); }break ;
arch/cris/arch-v32/kernel/ptrace.c renamed from arch/cris/arch-v32/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -126,7 +126,8 @@ ptrace_disable(struct task_struct *child } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret;unsigned long __user *datap = (unsigned long __user *)data;
arch/frv/kernel/ptrace.c renamed from arch/frv/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -254,7 +254,8 @@ void ptrace_disable(struct task_struct *user_disable_single_step (child); } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {unsigned long tmp;int ret;
arch/h8300/kernel/ptrace.c renamed from arch/h8300/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +4 -3
@@ -50,7 +50,8 @@ void ptrace_disable(struct task_struct *user_disable_single_step (child); } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret;
@@ -120,7 +121,7 @@ long arch_ptrace(struct task_struct *chi ret = -EFAULT ;break ; } - data +=sizeof (long ); + data +=sizeof (unsigned long ); } ret =0 ;break ;
@@ -135,7 +136,7 @@ long arch_ptrace(struct task_struct *chibreak ; }h8300_put_reg (child, i, tmp); - data +=sizeof (long ); + data +=sizeof (unsigned long ); } ret =0 ;break ;
arch/ia64/kernel/ptrace.c renamed from arch/ia64/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -1177,7 +1177,8 @@ ptrace_disable (struct task_struct *chil }long -arch_ptrace (struct task_struct *child,long request,long addr,long data) +arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {switch (request) {case PTRACE_PEEKTEXT :
arch/m32r/kernel/ptrace.c renamed from arch/m32r/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -622,7 +622,8 @@ void ptrace_disable(struct task_struct * }long -arch_ptrace (struct task_struct *child,long request,long addr,long data) +arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret;
arch/m68k/kernel/ptrace.c renamed from arch/m68k/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +5 -4
@@ -156,7 +156,8 @@ void user_disable_single_step(struct tassinglestep_disable (child); } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {unsigned long tmp;int i, ret =0 ;
@@ -200,7 +201,7 @@ long arch_ptrace(struct task_struct *chi* into internal fpu reg representation */ if (FPU_IS_EMU && (addr <45 ) && !(addr %3 )) { - data = (unsigned long )data <<15 ; + data <<=15 ; data = (data &0xffff0000 ) | ((data &0x0000ffff ) >>1 ); }
@@ -215,7 +216,7 @@ long arch_ptrace(struct task_struct *chi ret =put_user (tmp, (unsigned long *)data);if (ret)break ; - data +=sizeof (long ); + data +=sizeof (unsigned long ); }break ;
@@ -229,7 +230,7 @@ long arch_ptrace(struct task_struct *chi tmp |=get_reg (child,PT_SR ) & ~SR_MASK ; }put_reg (child, i, tmp); - data +=sizeof (long ); + data +=sizeof (unsigned long ); }break ;
arch/m68knommu/kernel/ptrace.c renamed from arch/m68knommu/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +4 -3
@@ -112,7 +112,8 @@ void ptrace_disable(struct task_struct *user_disable_single_step (child); } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret;
@@ -184,7 +185,7 @@ long arch_ptrace(struct task_struct *chi ret = -EFAULT ;break ; } - data +=sizeof (long ); + data +=sizeof (unsigned long ); } ret =0 ;break ;
@@ -204,7 +205,7 @@ long arch_ptrace(struct task_struct *chi tmp |=get_reg (child,PT_SR ) & ~(SR_MASK <<16 ); }put_reg (child, i, tmp); - data +=sizeof (long ); + data +=sizeof (unsigned long ); } ret =0 ;break ;
arch/microblaze/kernel/ptrace.c renamed from arch/microblaze/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -73,7 +73,8 @@ static microblaze_reg_t *reg_save_addr(ureturn (microblaze_reg_t *)((char *)regs + reg_offs); } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int rval;unsigned long val =0 ;
arch/mips/kernel/ptrace.c renamed from arch/mips/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -255,7 +255,8 @@ int ptrace_set_watch_regs(struct task_streturn 0 ; } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret;
arch/mn10300/kernel/ptrace.c renamed from arch/mn10300/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -295,7 +295,8 @@ void ptrace_disable(struct task_struct */* * handle the arch-specific side of process tracing */ -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {unsigned long tmp;int ret;
arch/parisc/kernel/ptrace.c renamed from arch/parisc/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +6 -5
@@ -110,7 +110,8 @@ void user_enable_block_step(struct task_pa_psw (task)->l =0 ; } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {unsigned long tmp;long ret = -EIO ;
@@ -120,8 +121,8 @@ long arch_ptrace(struct task_struct *chi/* Read the word at location addr in the USER area. For ptraced processes, the kernel saves all regs on a syscall. */ case PTRACE_PEEKUSR : -if ((addr & (sizeof (long )-1 )) || - (unsigned long ) addr >=sizeof (struct pt_regs )) +if ((addr & (sizeof (unsigned long )-1 )) || + addr >=sizeof (struct pt_regs ))break ; tmp = *(unsigned long *) ((char *)task_regs (child) + addr); ret =put_user (tmp, (unsigned long *) data);
@@ -151,8 +152,8 @@ long arch_ptrace(struct task_struct *chibreak ; } -if ((addr & (sizeof (long )-1 )) || - (unsigned long ) addr >=sizeof (struct pt_regs )) +if ((addr & (sizeof (unsigned long )-1 )) || + addr >=sizeof (struct pt_regs ))break ; if ((addr >= PT_GR1 && addr <= PT_GR31) || addr == PT_IAOQ0 || addr == PT_IAOQ1 ||
arch/powerpc/kernel/ptrace.c renamed from arch/powerpc/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +8 -7
@@ -1406,8 +1406,8 @@ static long ppc_del_hwdebug(struct task_* Here are the old "legacy" powerpc specific getregs/setregs ptrace calls, * we mark them as obsolete now, they will be removed in a future version */ -static long arch_ptrace_old (struct task_struct *child,long request,long addr, -long data) +static long arch_ptrace_old (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {switch (request) {case PPC_PTRACE_GETREGS :/* Get GPRs 0 - 31. */
@@ -1434,7 +1434,8 @@ static long arch_ptrace_old(struct task_return -EPERM ; } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret = -EPERM ;
@@ -1446,11 +1447,11 @@ long arch_ptrace(struct task_struct *chi ret = -EIO ;/* convert to index and check */ #ifdef CONFIG_PPC32 - index = (unsigned long ) addr >>2 ; + index = addr >>2 ;if ((addr &3 ) || (index >PT_FPSCR ) || (child->thread.regs ==NULL )) #else - index = (unsigned long ) addr >>3 ; + index = addr >>3 ; if ((addr & 7) || (index > PT_FPSCR))#endif break ;
@@ -1474,11 +1475,11 @@ long arch_ptrace(struct task_struct *chi ret = -EIO ;/* convert to index and check */ #ifdef CONFIG_PPC32 - index = (unsigned long ) addr >>2 ; + index = addr >>2 ;if ((addr &3 ) || (index >PT_FPSCR ) || (child->thread.regs ==NULL )) #else - index = (unsigned long ) addr >>3 ; + index = addr >>3 ; if ((addr & 7) || (index > PT_FPSCR))#endif break ;
arch/s390/kernel/ptrace.c renamed from arch/s390/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -343,7 +343,8 @@ poke_user(struct task_struct *child, addreturn __poke_user (child, addr, data); } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {ptrace_area parea;int copied, ret;
arch/score/kernel/ptrace.c renamed from arch/score/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -325,7 +325,8 @@ void ptrace_disable(struct task_struct * }long -arch_ptrace (struct task_struct *child,long request,long addr,long data) +arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret;unsigned long __user *datap = (void __user *)data;
arch/sh/kernel/ptrace_32.c renamed from arch/sh/kernel/ptrace_32.c~ptrace-change-signature-of-arch_ptrace +11 -10
@@ -365,7 +365,8 @@ const struct user_regset_view *task_userreturn &user_sh_native_view; } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {struct user * dummy =NULL ;unsigned long __user *datap = (unsigned long __user *)data;
@@ -383,17 +384,17 @@ long arch_ptrace(struct task_struct *chiif (addr <sizeof (struct pt_regs )) tmp =get_stack_long (child, addr); -else if (addr >= (long ) &dummy->fpu && - addr < (long ) &dummy->u_fpvalid) { +else if (addr >= (unsigned long ) &dummy->fpu && + addr < (unsigned long ) &dummy->u_fpvalid) {if (!tsk_used_math (child)) { -if (addr == (long )&dummy->fpu.fpscr) +if (addr == (unsigned long )&dummy->fpu.fpscr) tmp =FPSCR_INIT ;else tmp =0 ; }else - tmp = ((long *)child->thread.xstate) + tmp = ((unsigned long *)child->thread.xstate) [(addr - (long )&dummy->fpu) >>2 ]; - }else if (addr == (long ) &dummy->u_fpvalid) + }else if (addr == (unsigned long ) &dummy->u_fpvalid) tmp = !!tsk_used_math (child);else if (addr ==PT_TEXT_ADDR ) tmp = child->mm->start_code;
@@ -417,13 +418,13 @@ long arch_ptrace(struct task_struct *chiif (addr <sizeof (struct pt_regs )) ret =put_stack_long (child, addr, data); -else if (addr >= (long ) &dummy->fpu && - addr < (long ) &dummy->u_fpvalid) { +else if (addr >= (unsigned long ) &dummy->fpu && + addr < (unsigned long ) &dummy->u_fpvalid) {set_stopped_child_used_math (child); - ((long *)child->thread.xstate) + ((unsigned long *)child->thread.xstate) [(addr - (long )&dummy->fpu) >>2 ] = data; ret =0 ; - }else if (addr == (long ) &dummy->u_fpvalid) { + }else if (addr == (unsigned long ) &dummy->u_fpvalid) {conditional_stopped_child_used_math (data, child); ret =0 ; }
arch/sh/kernel/ptrace_64.c renamed from arch/sh/kernel/ptrace_64.c~ptrace-change-signature-of-arch_ptrace +4 -2
@@ -383,7 +383,8 @@ const struct user_regset_view *task_userreturn &user_sh64_native_view; } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret;
@@ -471,7 +472,8 @@ long arch_ptrace(struct task_struct *chireturn ret; } -asmlinkage int sh64_ptrace(long request, long pid, long addr, long data) +asmlinkage int sh64_ptrace(long request, long pid, +unsigned long addr,unsigned long data) {#define WPC_DBRMODE 0x0d104008static unsigned long first_call;
arch/sparc/kernel/ptrace_32.c renamed from arch/sparc/kernel/ptrace_32.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -323,7 +323,8 @@ const struct user_regset_view *task_userreturn &user_sparc32_view; } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {unsigned long addr2 = current->thread.kregs->u_regs[UREG_I4 ];const struct user_regset_view *view;
arch/sparc/kernel/ptrace_64.c renamed from arch/sparc/kernel/ptrace_64.c~ptrace-change-signature-of-arch_ptrace +4 -3
@@ -969,7 +969,8 @@ struct fps {unsigned long fsr; }; -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {const struct user_regset_view *view =task_user_regset_view (current);unsigned long addr2 =task_pt_regs (current)->u_regs[UREG_I4 ];
@@ -977,8 +978,8 @@ long arch_ptrace(struct task_struct *chistruct fps __user *fps;int ret; - pregs = (struct pt_regs __user *) (unsigned long ) addr; - fps = (struct fps __user *) (unsigned long ) addr; + pregs = (struct pt_regs __user *) addr; + fps = (struct fps __user *) addr;switch (request) {case PTRACE_PEEKUSR :
arch/tile/kernel/ptrace.c renamed from arch/tile/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +6 -3
@@ -45,7 +45,8 @@ void ptrace_disable(struct task_struct *clear_tsk_thread_flag (child,TIF_SYSCALL_TRACE ); } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {unsigned long __user *datap = (long __user __force *)data;unsigned long tmp;
@@ -98,7 +99,8 @@ long arch_ptrace(struct task_struct *chiif (!access_ok (VERIFY_WRITE , datap,PTREGS_SIZE ))break ; childregs = (long *)task_pt_regs (child); -for (i =0 ; i <sizeof (struct pt_regs )/sizeof (long ); ++i) { +for (i =0 ; i <sizeof (struct pt_regs )/sizeof (unsigned long ); + ++i) { ret =__put_user (childregs[i], &datap[i]);if (ret !=0 )break ;
@@ -109,7 +111,8 @@ long arch_ptrace(struct task_struct *chiif (!access_ok (VERIFY_READ , datap,PTREGS_SIZE ))break ; childregs = (long *)task_pt_regs (child); -for (i =0 ; i <sizeof (struct pt_regs )/sizeof (long ); ++i) { +for (i =0 ; i <sizeof (struct pt_regs )/sizeof (unsigned long ); + ++i) { ret =__get_user (childregs[i], &datap[i]);if (ret !=0 )break ;
arch/um/kernel/ptrace.c renamed from arch/um/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +3 -2
@@ -42,10 +42,11 @@ void ptrace_disable(struct task_struct *extern int peek_user (struct task_struct * child,long addr,long data);extern int poke_user (struct task_struct * child,long addr,long data); -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int i, ret; -unsigned long __user *p = (void __user *)(unsigned long )data; +unsigned long __user *p = (void __user *)data;switch (request) {/* read word at location addr. */
arch/um/sys-i386/ptrace.c renamed from arch/um/sys-i386/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -2
@@ -203,8 +203,8 @@ int set_fpxregs(struct user_fxsr_struct (unsigned long *) &fpregs); } -long subarch_ptrace (struct task_struct *child,long request,long addr, -long data) +long subarch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {return -EIO ; }
arch/um/sys-x86_64/ptrace.c renamed from arch/um/sys-x86_64/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -2
@@ -175,8 +175,8 @@ int set_fpregs(struct user_i387_struct _return restore_fp_registers (userspace_pid[cpu], fpregs); } -long subarch_ptrace (struct task_struct *child,long request,long addr, -long data) +long subarch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret = -EIO ;
arch/x86/kernel/ptrace.c renamed from arch/x86/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +4 -3
@@ -801,7 +801,8 @@ void ptrace_disable(struct task_struct *static const struct user_regset_view user_x86_32_view;/* Initialized below. */ #endif -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret;unsigned long __user *datap = (unsigned long __user *)data;
@@ -888,14 +889,14 @@ long arch_ptrace(struct task_struct *chi#if definedCONFIG_X86_32 || definedCONFIG_IA32_EMULATION case PTRACE_GET_THREAD_AREA : -if (addr <0 ) +if ((int ) addr <0 )return -EIO ; ret =do_get_thread_area (child, addr, (struct user_desc __user *) data);break ;case PTRACE_SET_THREAD_AREA : -if (addr <0 ) +if ((int ) addr <0 )return -EIO ; ret =do_set_thread_area (child, addr, (struct user_desc __user *) data,0 );
arch/xtensa/kernel/ptrace.c renamed from arch/xtensa/kernel/ptrace.c~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -256,7 +256,8 @@ int ptrace_pokeusr(struct task_struct *creturn 0 ; } -long arch_ptrace (struct task_struct *child,long request,long addr,long data) +long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data) {int ret = -EPERM ;
include/linux/ptrace.h renamed from include/linux/ptrace.h~ptrace-change-signature-of-arch_ptrace +2 -1
@@ -100,7 +100,8 @@#include <linux/sched.h> /* For struct task_struct. */ -extern long arch_ptrace (struct task_struct *child,long request,long addr,long data); +extern long arch_ptrace (struct task_struct *child,long request, +unsigned long addr,unsigned long data);extern int ptrace_traceme (void );extern int ptrace_readdata (struct task_struct *tsk,unsigned long src,char __user *dst,int len);extern int ptrace_writedata (struct task_struct *tsk,char __user *src,unsigned long dst,int len);
_