This patch to 2.5.66-bk-current updates several $ARCH syscalls and
prototypes to match the kernel arch-independent syscalls.
Comments? up? down? forward?
Thanks,
-- ~Randy
patch_name: syscall-long-protos.patch patch_version: 2003-04-03.11:03:07 author: Randy.Dunlap <rddunlap@osdl.org> description: make $ARCH syscalls match arch-independent: <return long> product: Linux product_versions: 2.5.66 maintainers: matthew@wil.cx (parisc), engebret@us.ibm.com (ppc64), schwidefsky@de.ibm.com (s390), zaitcev@redhat.com (sparc), davem@redhat.com (sparc64) diffstat: = arch/parisc/kernel/sys_parisc32.c | 2 +- arch/ppc64/kernel/sys_ppc32.c | 10 +++++----- arch/s390x/kernel/linux32.c | 8 ++++---- arch/sparc/kernel/sys_sparc.c | 4 ++-- arch/sparc64/kernel/sys_sparc32.c | 12 ++++++------ 5 files changed, 18 insertions(+), 18 deletions(-)
diff -Naur ./arch/sparc/kernel/sys_sparc.c%SCPRL ./arch/sparc/kernel/sys_sparc.c --- ./arch/sparc/kernel/sys_sparc.c%SCPRL Mon Mar 24 14:00:17 2003 +++ ./arch/sparc/kernel/sys_sparc.c Thu Apr 3 10:39:42 2003 @@ -269,11 +269,11 @@ return do_mmap2(addr, len, prot, flags, fd, off >> PAGE_SHIFT); } -extern int sys_remap_file_pages(unsigned long start, unsigned long size, +extern long sys_remap_file_pages(unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long flags); -int sparc_remap_file_pages(unsigned long start, unsigned long size, +long sparc_remap_file_pages(unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long flags) { diff -Naur ./arch/sparc64/kernel/sys_sparc32.c%SCPRL ./arch/sparc64/kernel/sys_sparc32.c --- ./arch/sparc64/kernel/sys_sparc32.c%SCPRL Mon Mar 24 14:00:52 2003 +++ ./arch/sparc64/kernel/sys_sparc32.c Thu Apr 3 10:46:48 2003 @@ -2934,10 +2934,10 @@ return error; } -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; @@ -2958,10 +2958,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; @@ -2984,9 +2984,9 @@ return ret; } -extern int sys_lookup_dcookie(u64 cookie64, char *buf, size_t len); +extern long sys_lookup_dcookie(u64 cookie64, char *buf, size_t len); -int sys32_lookup_dcookie(u32 cookie_high, u32 cookie_low, char *buf, size_t len) +long sys32_lookup_dcookie(u32 cookie_high, u32 cookie_low, char *buf, size_t len) { return sys_lookup_dcookie((u64)cookie_high << 32 | cookie_low, buf, len); diff -Naur ./arch/ppc64/kernel/sys_ppc32.c%SCPRL ./arch/ppc64/kernel/sys_ppc32.c --- ./arch/ppc64/kernel/sys_ppc32.c%SCPRL Mon Mar 24 14:01:11 2003 +++ ./arch/ppc64/kernel/sys_ppc32.c Thu Apr 3 10:43:44 2003 @@ -2886,10 +2886,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; @@ -2910,10 +2910,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; @@ -3019,7 +3019,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) diff -Naur ./arch/parisc/kernel/sys_parisc32.c%SCPRL ./arch/parisc/kernel/sys_parisc32.c --- ./arch/parisc/kernel/sys_parisc32.c%SCPRL Mon Mar 24 14:00:15 2003 +++ ./arch/parisc/kernel/sys_parisc32.c Thu Apr 3 10:41:02 2003 @@ -1636,7 +1636,7 @@ return sys_semctl (semid, semnum, cmd, arg); } -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 sys32_lookup_dcookie(u32 cookie_high, u32 cookie_low, char *buf, size_t len) diff -Naur ./arch/s390x/kernel/linux32.c%SCPRL ./arch/s390x/kernel/linux32.c --- ./arch/s390x/kernel/linux32.c%SCPRL Mon Mar 24 14:01:13 2003 +++ ./arch/s390x/kernel/linux32.c Thu Apr 3 10:44:45 2003 @@ -2878,10 +2878,10 @@ return error; } -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; @@ -2902,10 +2902,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; - 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/