Return-Path: Received: from imx9.toshiba.co.jp (imx9.toshiba.co.jp [202.33.96.51]) by ozlabs.org (Postfix) with ESMTP id 79DF2DDEDE for ; Wed, 7 Mar 2007 12:18:18 +1100 (EST) Received: from inet-tsb5.toshiba.co.jp (inet-tsb5 [202.33.96.24]) by imx9.toshiba.co.jp with ESMTP id l271ID9V028874 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 7 Mar 2007 10:18:17 +0900 (JST) Date: Wed, 07 Mar 2007 10:18:05 +0900 Message-ID: From: Tsutomu OWA To: mingo@elte.hu Subject: [patch 4/7] powerpc 2.6.20-rt8: fix compile error (futex.h) In-Reply-To: References: MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To fix the following compile error by adding dummy functions for now. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - include/asm-powerpc/futex.h kernel/built-in.o: In function `fixup_pi_state_owner64': kernel/futex.c:2380: undefined reference to `.futex_atomic_cmpxchg_inatomic64' kernel/built-in.o: In function `futex_lock_pi64': kernel/futex.c:3228: undefined reference to `.futex_atomic_cmpxchg_inatomic64' kernel/futex.c:3273: undefined reference to `.futex_atomic_cmpxchg_inatomic64' kernel/futex.c:3310: undefined reference to `.futex_atomic_cmpxchg_inatomic64' kernel/built-in.o: In function `futex_requeue_pi64': kernel/futex.c:2756: undefined reference to `.futex_atomic_cmpxchg_inatomic64' kernel/built-in.o: In function `do_futex64': kernel/futex.c:2547: undefined reference to `.futex_atomic_op_inuser64' kernel/futex.c:3446: undefined reference to `.futex_atomic_cmpxchg_inatomic64' : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Signed-off-by: Tsutomu Owa -- owa diff -rup linux-rt8/include/asm-powerpc/futex.h rt/include/asm-powerpc/futex.h --- linux-rt8/include/asm-powerpc/futex.h 2007-02-20 09:37:26.000000000 +0900 +++ rt/include/asm-powerpc/futex.h 2007-03-05 10:36:15.000000000 +0900 @@ -113,5 +113,25 @@ futex_atomic_cmpxchg_inatomic(int __user return prev; } +static inline int +futex_atomic_op_inuser64 (int encoded_op, u64 __user *uaddr) +{ + /* FIXME: implement this at some point! */ + printk("futex_atomic_op_inuser64: not yet.\n"); + BUG(); + + return 0; +} + +static inline u64 +futex_atomic_cmpxchg_inatomic64(u64 __user *uaddr, u64 oldval, u64 newval) +{ + /* FIXME: implement this at some point! */ + printk("futex_atomic_cmpxchg_inatomic64: not yet.\n"); + BUG(); + + return 0; +} + #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_FUTEX_H */