diff options
author | wangweidong <wangweidong1@huawei.com> | 2014-01-21 02:44:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-21 21:40:41 -0500 |
commit | 3c8e43ba9fe93b2670decc119f82f072a8d2459f (patch) | |
tree | 187011eb548ea89b4d56d036030b8318a5566853 /include/net/sctp | |
parent | 79b91130a2679ea5063d49c021d97346a09eb0a5 (diff) |
sctp: remove macros sctp_spin_[un]lock
Redefined spin_[un]lock to sctp_spin_[un]lock for user space friendly
code which we haven't use in years, so removing them.
Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp')
-rw-r--r-- | include/net/sctp/sctp.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index c17121afe182..4f77e9811f9e 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
@@ -171,8 +171,6 @@ extern struct kmem_cache *sctp_bucket_cachep __read_mostly; | |||
171 | */ | 171 | */ |
172 | 172 | ||
173 | /* spin lock wrappers. */ | 173 | /* spin lock wrappers. */ |
174 | #define sctp_spin_lock(lock) spin_lock(lock) | ||
175 | #define sctp_spin_unlock(lock) spin_unlock(lock) | ||
176 | #define sctp_write_lock(lock) write_lock(lock) | 174 | #define sctp_write_lock(lock) write_lock(lock) |
177 | #define sctp_write_unlock(lock) write_unlock(lock) | 175 | #define sctp_write_unlock(lock) write_unlock(lock) |
178 | #define sctp_read_lock(lock) read_lock(lock) | 176 | #define sctp_read_lock(lock) read_lock(lock) |
@@ -349,11 +347,11 @@ static inline void sctp_skb_list_tail(struct sk_buff_head *list, | |||
349 | unsigned long flags; | 347 | unsigned long flags; |
350 | 348 | ||
351 | spin_lock_irqsave(&head->lock, flags); | 349 | spin_lock_irqsave(&head->lock, flags); |
352 | sctp_spin_lock(&list->lock); | 350 | spin_lock(&list->lock); |
353 | 351 | ||
354 | skb_queue_splice_tail_init(list, head); | 352 | skb_queue_splice_tail_init(list, head); |
355 | 353 | ||
356 | sctp_spin_unlock(&list->lock); | 354 | spin_unlock(&list->lock); |
357 | spin_unlock_irqrestore(&head->lock, flags); | 355 | spin_unlock_irqrestore(&head->lock, flags); |
358 | } | 356 | } |
359 | 357 | ||