mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ptrace: change signature of arch_ptrace()
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: Geert Uytterhoeven <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9fed81dc40
commit
9b05a69e05
30 changed files with 101 additions and 70 deletions
|
|
@ -1406,8 +1406,8 @@ static long ppc_del_hwdebug(struct task_struct *child, long addr, long data)
|
|||
* 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_struct *child, long request, long addr,
|
|||
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 *child, long request, long addr, long data)
|
|||
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 *child, long request, long addr, long data)
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue