Build failure with latest -git: btrfs on ppc64

From: Chuck Ebbert
Date: Sat Feb 07 2009 - 15:53:22 EST


fs/btrfs/locking.c: In function 'btrfs_path_lock_waiting':
fs/btrfs/locking.c:254: error: implicit declaration of function '__raw_spin_is_contended'

Looks like spin_is_contended() is only available on mips and x86??

$ grep -R spin_is_contended *
arch/x86/include/asm/spinlock.h:static inline int __ticket_spin_is_contended(raw_spinlock_t *lock)
arch/x86/include/asm/spinlock.h: * __byte_spin_is_contended.
arch/x86/include/asm/spinlock.h:static inline int __byte_spin_is_contended(raw_spinlock_t *lock)
arch/x86/include/asm/spinlock.h:static inline int __raw_spin_is_contended(raw_spinlock_t *lock)
arch/x86/include/asm/spinlock.h: return __ticket_spin_is_contended(lock);
arch/x86/include/asm/paravirt.h: int (*spin_is_contended)(struct raw_spinlock *lock);
arch/x86/include/asm/paravirt.h:static inline int __raw_spin_is_contended(struct raw_spinlock *lock)
arch/x86/include/asm/paravirt.h: return PVOP_CALL1(int, pv_lock_ops.spin_is_contended, lock);
arch/x86/kernel/paravirt-spinlocks.c: .spin_is_contended = __ticket_spin_is_contended,
arch/x86/kernel/paravirt-spinlocks.c: pv_lock_ops.spin_is_contended = __byte_spin_is_contended;
arch/x86/xen/spinlock.c:static int xen_spin_is_contended(struct raw_spinlock *lock)
arch/x86/xen/spinlock.c: pv_lock_ops.spin_is_contended = xen_spin_is_contended;
arch/mips/include/asm/spinlock.h:static inline int __raw_spin_is_contended(raw_spinlock_t *lock)
fs/btrfs/locking.c: if (spin_is_contended(&eb->lock) ||
include/linux/spinlock.h:#define spin_is_contended(lock) ((lock)->break_lock)
include/linux/spinlock.h:#define spin_is_contended(lock) __raw_spin_is_contended(&(lock)->raw_lock)
include/linux/sched.h: return spin_is_contended(lock);
include/linux/spinlock_up.h:#define __raw_spin_is_contended(lock) (((void)(lock), 0))
--
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/