From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932163AbWBOW63 (ORCPT ); Wed, 15 Feb 2006 17:58:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932228AbWBOW63 (ORCPT ); Wed, 15 Feb 2006 17:58:29 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:12721 "EHLO mx3.mail.elte.hu") by vger.kernel.org with ESMTP id S932163AbWBOW62 (ORCPT ); Wed, 15 Feb 2006 17:58:28 -0500 Date: Wed, 15 Feb 2006 23:56:46 +0100 From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: Ulrich Drepper , Thomas Gleixner , Arjan van de Ven , Andrew Morton Subject: [patch 1/5] lightweight robust futexes: arch defaults Message-ID: <20060215225646.GB5599@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-ELTE-SpamScore: 0.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=0.0 required=5.9 tests=AWL autolearn=no SpamAssassin version=3.0.3 0.0 AWL AWL: From: address is in the auto white-list X-ELTE-VirusStatus: clean Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org add placeholder futex_atomic_cmpxchg_inuser() implementations to every architecture that supports futexes. It returns -ENOSYS. Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner Signed-off-by: Arjan van de Ven Acked-by: Ulrich Drepper ---- include/asm-frv/futex.h | 6 ++++++ include/asm-generic/futex.h | 6 ++++++ include/asm-i386/futex.h | 6 ++++++ include/asm-mips/futex.h | 6 ++++++ include/asm-powerpc/futex.h | 6 ++++++ include/asm-x86_64/futex.h | 6 ++++++ 6 files changed, 36 insertions(+) Index: linux-robust-list.q/include/asm-frv/futex.h =================================================================== --- linux-robust-list.q.orig/include/asm-frv/futex.h +++ linux-robust-list.q/include/asm-frv/futex.h @@ -9,5 +9,11 @@ extern int futex_atomic_op_inuser(int encoded_op, int __user *uaddr); +static inline int +futex_atomic_cmpxchg_inuser(int __user *uaddr, int oldval, int newval) +{ + return -ENOSYS; +} + #endif #endif Index: linux-robust-list.q/include/asm-generic/futex.h =================================================================== --- linux-robust-list.q.orig/include/asm-generic/futex.h +++ linux-robust-list.q/include/asm-generic/futex.h @@ -49,5 +49,11 @@ futex_atomic_op_inuser (int encoded_op, return ret; } +static inline int +futex_atomic_cmpxchg_inuser(int __user *uaddr, int oldval, int newval) +{ + return -ENOSYS; +} + #endif #endif Index: linux-robust-list.q/include/asm-i386/futex.h =================================================================== --- linux-robust-list.q.orig/include/asm-i386/futex.h +++ linux-robust-list.q/include/asm-i386/futex.h @@ -104,5 +104,11 @@ futex_atomic_op_inuser (int encoded_op, return ret; } +static inline int +futex_atomic_cmpxchg_inuser(int __user *uaddr, int oldval, int newval) +{ + return -ENOSYS; +} + #endif #endif Index: linux-robust-list.q/include/asm-mips/futex.h =================================================================== --- linux-robust-list.q.orig/include/asm-mips/futex.h +++ linux-robust-list.q/include/asm-mips/futex.h @@ -99,5 +99,11 @@ futex_atomic_op_inuser (int encoded_op, return ret; } +static inline int +futex_atomic_cmpxchg_inuser(int __user *uaddr, int oldval, int newval) +{ + return -ENOSYS; +} + #endif #endif Index: linux-robust-list.q/include/asm-powerpc/futex.h =================================================================== --- linux-robust-list.q.orig/include/asm-powerpc/futex.h +++ linux-robust-list.q/include/asm-powerpc/futex.h @@ -81,5 +81,11 @@ static inline int futex_atomic_op_inuser return ret; } +static inline int +futex_atomic_cmpxchg_inuser(int __user *uaddr, int oldval, int newval) +{ + return -ENOSYS; +} + #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_FUTEX_H */ Index: linux-robust-list.q/include/asm-x86_64/futex.h =================================================================== --- linux-robust-list.q.orig/include/asm-x86_64/futex.h +++ linux-robust-list.q/include/asm-x86_64/futex.h @@ -94,5 +94,11 @@ futex_atomic_op_inuser (int encoded_op, return ret; } +static inline int +futex_atomic_cmpxchg_inuser(int __user *uaddr, int oldval, int newval) +{ + return -ENOSYS; +} + #endif #endif