浏览代码

MIPS: Move ptrace prototypes to ptrace.h

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 16 年之前
父节点
当前提交
d302d05cf4
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 6 0
      arch/mips/include/asm/ptrace.h
  2. 0 6
      arch/mips/kernel/ptrace32.c

+ 6 - 0
arch/mips/include/asm/ptrace.h

@@ -120,6 +120,12 @@ struct pt_watch_regs {
 
 struct task_struct;
 
+extern int ptrace_getregs(struct task_struct *child, __s64 __user *data);
+extern int ptrace_setregs(struct task_struct *child, __s64 __user *data);
+
+extern int ptrace_getfpregs(struct task_struct *child, __u32 __user *data);
+extern int ptrace_setfpregs(struct task_struct *child, __u32 __user *data);
+
 extern int ptrace_get_watch_regs(struct task_struct *child,
 	struct pt_watch_regs __user *addr);
 extern int ptrace_set_watch_regs(struct task_struct *child,

+ 0 - 6
arch/mips/kernel/ptrace32.c

@@ -37,12 +37,6 @@
 #include <asm/uaccess.h>
 #include <asm/bootinfo.h>
 
-int ptrace_getregs(struct task_struct *child, __s64 __user *data);
-int ptrace_setregs(struct task_struct *child, __s64 __user *data);
-
-int ptrace_getfpregs(struct task_struct *child, __u32 __user *data);
-int ptrace_setfpregs(struct task_struct *child, __u32 __user *data);
-
 /*
  * Tracing a 32-bit process with a 64-bit strace and vice versa will not
  * work.  I don't know how to fix this.