Skip to contentSkip to conversation

adjust parisc sys_ptrace prototype

PATCH New Christoph Hellwig 1 participant 1 message Sep 26, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 adjust parisc sys_ptrace prototype

Make the pid argument a long as on every other arcihtecture. Despite pid_t beeing a 32bit type even on 64bit parisc this is not an ABI change due to the parisc calling conventions. And even if it did it wouldn't matter too much because 64bit userspace on parisc is in an embrionic stage.

arch/parisc/kernel/ptrace.c +1 -1
Index: linux-2.6/arch/parisc/kernel/ptrace.c
===================================================================
@@ -78,7 +78,7 @@
 	pa_psw(child)->l = 0;
 }
 
-long sys_ptrace(long request, pid_t pid, long addr, long data)
+long sys_ptrace(long request, long pid, long addr, long data)
 {
 	struct task_struct *child;
 	long ret;
include/asm-parisc/unistd.h +0 -1
Index: linux-2.6/include/asm-parisc/unistd.h
===================================================================
@@ -1005,7 +1005,6 @@
 		struct pt_regs *regs);
 int sys_vfork(struct pt_regs *regs);
 int sys_pipe(int *fildes);
-long sys_ptrace(long request, pid_t pid, long addr, long data);
 struct sigaction;
 asmlinkage long sys_rt_sigaction(int sig,
 				const struct sigaction __user *act,