DCCP: Use newer, non-deprecated __RW_LOCK_UNLOCKED macro.
PATCH 1/1 DCCP: Use newer, non-deprecated __RW_LOCK_UNLOCKED macro.
Signed-off-by Robert P. J. Day <[email protected]>
---
net/dccp/proto.c +1 -1
@@ -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
====================================