Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762979AbXEULBD (ORCPT ); Mon, 21 May 2007 07:01:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757405AbXEULAj (ORCPT ); Mon, 21 May 2007 07:00:39 -0400 Received: from mtagate1.de.ibm.com ([195.212.29.150]:34394 "EHLO mtagate1.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755724AbXEULAi (ORCPT ); Mon, 21 May 2007 07:00:38 -0400 Message-Id: <20070521110108.423904782@de.ibm.com> References: <20070521105118.955425052@de.ibm.com> User-Agent: quilt/0.46-1 Date: Mon, 21 May 2007 12:51:20 +0200 From: Martin Schwidefsky To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Cc: Heiko Carstens , Martin Schwidefsky Subject: [patch 2/5] Wire up sys_utimensat. Content-Disposition: inline; filename=002-utimensat.diff Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2938 Lines: 88 From: Heiko Carstens Wire up sys_utimensat, reserve syscall number for sys_fallocate and add a couple of syscalls to the ignore list to get rid of warings. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- arch/s390/kernel/compat_wrapper.S | 8 ++++++++ arch/s390/kernel/syscalls.S | 2 ++ include/asm-s390/unistd.h | 18 ++++++++++++++++-- 3 files changed, 26 insertions(+), 2 deletions(-) Index: quilt-2.6/arch/s390/kernel/compat_wrapper.S =================================================================== --- quilt-2.6.orig/arch/s390/kernel/compat_wrapper.S +++ quilt-2.6/arch/s390/kernel/compat_wrapper.S @@ -1682,3 +1682,11 @@ compat_sys_utimes_wrapper: llgtr %r2,%r2 # char * llgtr %r3,%r3 # struct compat_timeval * jg compat_sys_utimes + + .globl compat_sys_utimensat_wrapper +compat_sys_utimensat_wrapper: + llgfr %r2,%r2 # unsigned int + llgtr %r3,%r3 # char * + llgtr %r4,%r4 # struct compat_timespec * + lgfr %r5,%r5 # int + jg compat_sys_utimensat Index: quilt-2.6/arch/s390/kernel/syscalls.S =================================================================== --- quilt-2.6.orig/arch/s390/kernel/syscalls.S +++ quilt-2.6/arch/s390/kernel/syscalls.S @@ -322,3 +322,5 @@ NI_SYSCALL /* 310 sys_move_pages * SYSCALL(sys_getcpu,sys_getcpu,sys_getcpu_wrapper) SYSCALL(sys_epoll_pwait,sys_epoll_pwait,compat_sys_epoll_pwait_wrapper) SYSCALL(sys_utimes,sys_utimes,compat_sys_utimes_wrapper) +NI_SYSCALL /* 314 sys_fallocate */ +SYSCALL(sys_utimensat,sys_utimensat,compat_sys_utimensat_wrapper) /* 315 */ Index: quilt-2.6/include/asm-s390/unistd.h =================================================================== --- quilt-2.6.orig/include/asm-s390/unistd.h +++ quilt-2.6/include/asm-s390/unistd.h @@ -251,8 +251,9 @@ #define __NR_getcpu 311 #define __NR_epoll_pwait 312 #define __NR_utimes 313 - -#define NR_syscalls 314 +/* Number 314 is reserved for new sys_fallocate */ +#define __NR_utimensat 315 +#define NR_syscalls 316 /* * There are some system calls that are not present on 64 bit, some @@ -346,6 +347,19 @@ #ifdef __KERNEL__ +#ifndef CONFIG_64BIT +#define __IGNORE_select +#else +#define __IGNORE_time +#endif + +/* Ignore NUMA system calls. Not wired up on s390. */ +#define __IGNORE_mbind +#define __IGNORE_get_mempolicy +#define __IGNORE_set_mempolicy +#define __IGNORE_migrate_pages +#define __IGNORE_move_pages + #define __ARCH_WANT_IPC_PARSE_VERSION #define __ARCH_WANT_OLD_READDIR #define __ARCH_WANT_SYS_ALARM -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. - 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/