locking: Use __[SPIN|RW]_LOCK_UNLOCKED in [spin|rw]_lock_init()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 16 Nov 2009 18:57:50 +0000 (19:57 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 24 Nov 2009 13:41:13 +0000 (14:41 +0100)
SPIN_LOCK_UNLOCKED and RW_LOCK_UNLOCKED are deprecated. Replace them
with the __*_LOCK_UNLOCKED variants.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/spinlock.h

index faf1482028dfb67e49b28d6fcca78459fe15add8..71dccfeb0d88de34d2a84ed34d2e587e17a11616 100644 (file)
@@ -100,7 +100,7 @@ do {                                                                \
 
 #else
 # define spin_lock_init(lock)                                  \
-       do { *(lock) = SPIN_LOCK_UNLOCKED; } while (0)
+       do { *(lock) = __SPIN_LOCK_UNLOCKED(lock); } while (0)
 #endif
 
 #ifdef CONFIG_DEBUG_SPINLOCK
@@ -114,7 +114,7 @@ do {                                                                \
 } while (0)
 #else
 # define rwlock_init(lock)                                     \
-       do { *(lock) = RW_LOCK_UNLOCKED; } while (0)
+       do { *(lock) = __RW_LOCK_UNLOCKED(lock); } while (0)
 #endif
 
 #define spin_is_locked(lock)   __raw_spin_is_locked(&(lock)->raw_lock)