From 341d25316744d18cd60a0de210116587a3ab414b Mon Sep 17 00:00:00 2001 From: Michael Ellerman Date: Tue, 8 May 2007 00:30:22 -0700 Subject: [PATCH] --- yaml --- r: 54694 b: refs/heads/master c: d1ab824be43842ae7429ab1df37153e1cebb4d32 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/spinlock_types.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 5c77c2ad054f..28af209ea0e5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b5e618181a927210f8be1d3d2249d31904ba358d +refs/heads/master: d1ab824be43842ae7429ab1df37153e1cebb4d32 diff --git a/trunk/include/linux/spinlock_types.h b/trunk/include/linux/spinlock_types.h index dc5fb69e4de9..210549ba4ef4 100644 --- a/trunk/include/linux/spinlock_types.h +++ b/trunk/include/linux/spinlock_types.h @@ -85,6 +85,12 @@ typedef struct { RW_DEP_MAP_INIT(lockname) } #endif +/* + * SPIN_LOCK_UNLOCKED and RW_LOCK_UNLOCKED defeat lockdep state tracking and + * are hence deprecated. + * Please use DEFINE_SPINLOCK()/DEFINE_RWLOCK() or + * __SPIN_LOCK_UNLOCKED()/__RW_LOCK_UNLOCKED() as appropriate. + */ #define SPIN_LOCK_UNLOCKED __SPIN_LOCK_UNLOCKED(old_style_spin_init) #define RW_LOCK_UNLOCKED __RW_LOCK_UNLOCKED(old_style_rw_init)