From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161104AbXCGBSU (ORCPT ); Tue, 6 Mar 2007 20:18:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161107AbXCGBST (ORCPT ); Tue, 6 Mar 2007 20:18:19 -0500 Received: from inet-tsb5.toshiba.co.jp ([202.33.96.24]:39580 "EHLO inet-tsb5.toshiba.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161104AbXCGBSS (ORCPT ); Tue, 6 Mar 2007 20:18:18 -0500 Date: Wed, 07 Mar 2007 10:18:05 +0900 Message-ID: From: Tsutomu OWA To: mingo@elte.hu Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, tsutomu.owa@toshiba.co.jp Subject: [patch 4/7] powerpc 2.6.20-rt8: fix compile error (futex.h) In-Reply-To: References: User-Agent: Wanderlust/2.8.1 (Something) Emacs/20.7 Mule/4.0 (HANANOEN) Organization: Software Engineering Center, TOSHIBA. MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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 */