提交 a49ed0bf 编写于 作者: T Thomas Gleixner

locking: Use __[SPIN|RW]_LOCK_UNLOCKED in [spin|rw]_lock_init()

SPIN_LOCK_UNLOCKED and RW_LOCK_UNLOCKED are deprecated. Replace them
with the __*_LOCK_UNLOCKED variants.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 c9286b7e
...@@ -100,7 +100,7 @@ do { \ ...@@ -100,7 +100,7 @@ do { \
#else #else
# define spin_lock_init(lock) \ # define spin_lock_init(lock) \
do { *(lock) = SPIN_LOCK_UNLOCKED; } while (0) do { *(lock) = __SPIN_LOCK_UNLOCKED(lock); } while (0)
#endif #endif
#ifdef CONFIG_DEBUG_SPINLOCK #ifdef CONFIG_DEBUG_SPINLOCK
...@@ -114,7 +114,7 @@ do { \ ...@@ -114,7 +114,7 @@ do { \
} while (0) } while (0)
#else #else
# define rwlock_init(lock) \ # define rwlock_init(lock) \
do { *(lock) = RW_LOCK_UNLOCKED; } while (0) do { *(lock) = __RW_LOCK_UNLOCKED(lock); } while (0)
#endif #endif
#define spin_is_locked(lock) __raw_spin_is_locked(&(lock)->raw_lock) #define spin_is_locked(lock) __raw_spin_is_locked(&(lock)->raw_lock)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册