Skip to contentSkip to conversation

DCCP: Use newer, non-deprecated __RW_LOCK_UNLOCKED macro.

PATCH New Robert P. J. Day 1 participant 1 message Mar 15, 2008 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DCCP: Use newer, non-deprecated __RW_LOCK_UNLOCKED macro.

---

net/dccp/proto.c +1 -1
index e3f5d37..290ea15 100644
@@ -46,7 +46,7 @@ atomic_t dccp_orphan_count = ATOMIC_INIT(0);
 EXPORT_SYMBOL_GPL(dccp_orphan_count);
 
 struct inet_hashinfo __cacheline_aligned dccp_hashinfo = {
-	.lhash_lock	= RW_LOCK_UNLOCKED,
+	.lhash_lock	= __RW_LOCK_UNLOCKED(dccp_hashinfo.lhash_lock),
 	.lhash_users	= ATOMIC_INIT(0),
 	.lhash_wait = __WAIT_QUEUE_HEAD_INITIALIZER(dccp_hashinfo.lhash_wait),
 };

====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
====================================