mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
um: fix ptrace build error
Both commits0a3d763f1a("ptrace: cleanup arch_ptrace() on um") and9b05a69e05("ptrace: change signature of arch_ptrace()") broke the um build. This patch fixes the issues.0a3d763f1aintroduced the undeclared variable "datavp". The patch seems completely untested. :-(9b05a69e05changed arch_ptrace()'s signature but did not update um/include/asm/ptrace-generic.h. Signed-off-by: Richard Weinberger <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Jeff Dike <[email protected]> Tested-by: Will Newton <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f6614b7bb4
commit
8818b6719f
2 changed files with 3 additions and 3 deletions
|
|
@ -38,8 +38,8 @@ struct pt_regs {
|
|||
|
||||
struct task_struct;
|
||||
|
||||
extern long subarch_ptrace(struct task_struct *child, long request, long addr,
|
||||
long data);
|
||||
extern long subarch_ptrace(struct task_struct *child, long request,
|
||||
unsigned long addr, unsigned long data);
|
||||
extern unsigned long getreg(struct task_struct *child, int regno);
|
||||
extern int putreg(struct task_struct *child, int regno, unsigned long value);
|
||||
extern int get_fpregs(struct user_i387_struct __user *buf,
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ long arch_ptrace(struct task_struct *child, long request,
|
|||
break;
|
||||
|
||||
case PTRACE_SET_THREAD_AREA:
|
||||
ret = ptrace_set_thread_area(child, addr, datavp);
|
||||
ret = ptrace_set_thread_area(child, addr, vp);
|
||||
break;
|
||||
|
||||
case PTRACE_FAULTINFO: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue