[patch 4/7] powerpc 2.6.20-rt8: fix compile error (futex.h)

From: Tsutomu OWA
Date: Tue Mar 06 2007 - 20:18:39 EST



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 <tsutomu.owa@xxxxxxxxxxxxx>
-- 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 */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/