Skip to contentSkip to conversation

make generic sys_ptrace unconditional

PATCH New Christoph Hellwig 1 participant 1 message May 1, 2008 ptrace support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

kernel/ptrace.c +0 -2
Index: linux-2.6/kernel/ptrace.c
===================================================================
@@ -543,7 +543,6 @@ struct task_struct *ptrace_get_task_stru
 #define arch_ptrace_attach(child)	do { } while (0)
 #endif
 
-#ifndef __ARCH_SYS_PTRACE
 asmlinkage long sys_ptrace(long request, long pid, long addr, long data)
 {
 	struct task_struct *child;
@@ -591,7 +590,6 @@ asmlinkage long sys_ptrace(long request,
 	unlock_kernel();
 	return ret;
 }
-#endif /* __ARCH_SYS_PTRACE */
 
 int generic_ptrace_peekdata(struct task_struct *tsk, long addr, long data)
 {