[PATCH 1/2] adjust parisc sys_ptrace prototype

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Acked-by: Matthew Wilcox <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>

Index: linux-2.6/arch/parisc/kernel/ptrace.c
===================================================================
--- linux-2.6.orig/arch/parisc/kernel/ptrace.c	2005-09-20 23:57:49.000000000 +0200
+++ linux-2.6/arch/parisc/kernel/ptrace.c	2005-09-21 11:31:34.000000000 +0200
@@ -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;
Index: linux-2.6/include/asm-parisc/unistd.h
===================================================================
--- linux-2.6.orig/include/asm-parisc/unistd.h	2005-09-20 23:57:49.000000000 +0200
+++ linux-2.6/include/asm-parisc/unistd.h	2005-09-21 11:35:23.000000000 +0200
@@ -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,

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux