Skip to content

Commit

Permalink
locking: Use __[SPIN|RW]_LOCK_UNLOCKED in [spin|rw]_lock_init()
Browse files Browse the repository at this point in the history
SPIN_LOCK_UNLOCKED and RW_LOCK_UNLOCKED are deprecated. Replace them
with the __*_LOCK_UNLOCKED variants.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Nov 24, 2009
1 parent c9286b7 commit a49ed0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit a49ed0b

Please sign in to comment.