sctp: remove macros sctp_read_[un]lock
authorwangweidong <wangweidong1@huawei.com>
Tue, 21 Jan 2014 07:44:10 +0000 (15:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jan 2014 02:40:41 +0000 (18:40 -0800)
Redefined read_[un]lock to sctp_read_[un]lock for user space
friendly code which we haven't use in years, and the macros
we never used, so removing them.

Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sctp.h

index 73dcc0c82749c7c0959bfb8025ca31e95786978d..572cd5a5292aef8b410a68b89908ae1522bfc659 100644 (file)
@@ -170,10 +170,6 @@ extern struct kmem_cache *sctp_bucket_cachep __read_mostly;
  *  Section:  Macros, externs, and inlines
  */
 
-/* spin lock wrappers. */
-#define sctp_read_lock(lock)    read_lock(lock)
-#define sctp_read_unlock(lock)  read_unlock(lock)
-
 /* sock lock wrappers. */
 #define sctp_lock_sock(sk)       lock_sock(sk)
 #define sctp_release_sock(sk)    release_sock(sk)