PATCH: ppc64 syscalls return long purity
Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 8 Apr 2003 01:06:24 +0100
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.67/arch/ppc64/kernel/sys_ppc32.c linux-2.5.67-ac1/arch/ppc64/kernel/sys_ppc32.c
--- linux-2.5.67/arch/ppc64/kernel/sys_ppc32.c 2003-03-26 19:59:50.000000000 +0000
+++ linux-2.5.67-ac1/arch/ppc64/kernel/sys_ppc32.c 2003-04-03 23:27:34.000000000 +0100
@@ -2781,10 +2781,10 @@
return secs;
}
-extern asmlinkage int sys_sched_setaffinity(pid_t pid, unsigned int len,
+extern asmlinkage long sys_sched_setaffinity(pid_t pid, unsigned int len,
unsigned long *user_mask_ptr);
-asmlinkage int sys32_sched_setaffinity(compat_pid_t pid, unsigned int len,
+asmlinkage long sys32_sched_setaffinity(compat_pid_t pid, unsigned int len,
u32 *user_mask_ptr)
{
unsigned long kernel_mask;
@@ -2805,10 +2805,10 @@
return ret;
}
-extern asmlinkage int sys_sched_getaffinity(pid_t pid, unsigned int len,
+extern asmlinkage long sys_sched_getaffinity(pid_t pid, unsigned int len,
unsigned long *user_mask_ptr);
-asmlinkage int sys32_sched_getaffinity(compat_pid_t pid, unsigned int len,
+asmlinkage long sys32_sched_getaffinity(compat_pid_t pid, unsigned int len,
u32 *user_mask_ptr)
{
unsigned long kernel_mask;
@@ -2914,7 +2914,7 @@
return sys_ftruncate(fd, (high << 32) | low);
}
-extern int sys_lookup_dcookie(u64 cookie64, char *buf, size_t len);
+extern long sys_lookup_dcookie(u64 cookie64, char *buf, size_t len);
long ppc32_lookup_dcookie(u32 cookie_high, u32 cookie_low, char *buf,
size_t len)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/