tree 4d0355092af3e324fc7d66d7964f0b7e69105bc6 parent 526c420c44b45b11e25a98f37702cc3044ba9bdc author Nathan Scott <[EMAIL PROTECTED]> Mon, 05 Sep 2005 08:27:50 +1000 committer Nathan Scott <[EMAIL PROTECTED]> Mon, 05 Sep 2005 08:27:50 +1000
[XFS] Manage spinlock differences between kernel versions a bit. SGI-PV: 904196 SGI-Modid: xfs-linux:xfs-kern:23563a Signed-off-by: Nathan Scott <[EMAIL PROTECTED]> fs/xfs/linux-2.6/spin.h | 3 +++ 1 files changed, 3 insertions(+) diff --git a/fs/xfs/linux-2.6/spin.h b/fs/xfs/linux-2.6/spin.h --- a/fs/xfs/linux-2.6/spin.h +++ b/fs/xfs/linux-2.6/spin.h @@ -45,6 +45,9 @@ typedef spinlock_t lock_t; #define SPLDECL(s) unsigned long s +#ifndef DEFINE_SPINLOCK +#define DEFINE_SPINLOCK(s) spinlock_t s = SPIN_LOCK_UNLOCKED +#endif #define spinlock_init(lock, name) spin_lock_init(lock) #define spinlock_destroy(lock) - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html