提交 bcf35afb 编写于 作者: C Christoph Hellwig 提交者: Linus Torvalds

make generic sys_ptrace unconditional

With s390 the last arch switched to the generic sys_ptrace yesterday so
we can now kill the ifdef around it to enforce every new port it using
it instead of introducing new weirdo versions.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 9fc3ace9
...@@ -534,7 +534,6 @@ struct task_struct *ptrace_get_task_struct(pid_t pid) ...@@ -534,7 +534,6 @@ struct task_struct *ptrace_get_task_struct(pid_t pid)
#define arch_ptrace_attach(child) do { } while (0) #define arch_ptrace_attach(child) do { } while (0)
#endif #endif
#ifndef __ARCH_SYS_PTRACE
asmlinkage long sys_ptrace(long request, long pid, long addr, long data) asmlinkage long sys_ptrace(long request, long pid, long addr, long data)
{ {
struct task_struct *child; struct task_struct *child;
...@@ -582,7 +581,6 @@ asmlinkage long sys_ptrace(long request, long pid, long addr, long data) ...@@ -582,7 +581,6 @@ asmlinkage long sys_ptrace(long request, long pid, long addr, long data)
unlock_kernel(); unlock_kernel();
return ret; return ret;
} }
#endif /* __ARCH_SYS_PTRACE */
int generic_ptrace_peekdata(struct task_struct *tsk, long addr, long data) int generic_ptrace_peekdata(struct task_struct *tsk, long addr, long data)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册