aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/lockdep.h5
-rw-r--r--include/net/sock.h2
-rw-r--r--net/core/sock.c2
3 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index fc9f8e88123b..8956daf64abd 100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -336,10 +336,11 @@ static inline void lockdep_on(void)
336# define lock_set_subclass(l, s, i) do { } while (0) 336# define lock_set_subclass(l, s, i) do { } while (0)
337# define lockdep_init() do { } while (0) 337# define lockdep_init() do { } while (0)
338# define lockdep_info() do { } while (0) 338# define lockdep_info() do { } while (0)
339# define lockdep_init_map(lock, name, key, sub) do { (void)(key); } while (0) 339# define lockdep_init_map(lock, name, key, sub) \
340 do { (void)(name); (void)(key); } while (0)
340# define lockdep_set_class(lock, key) do { (void)(key); } while (0) 341# define lockdep_set_class(lock, key) do { (void)(key); } while (0)
341# define lockdep_set_class_and_name(lock, key, name) \ 342# define lockdep_set_class_and_name(lock, key, name) \
342 do { (void)(key); } while (0) 343 do { (void)(key); (void)(name); } while (0)
343#define lockdep_set_class_and_subclass(lock, key, sub) \ 344#define lockdep_set_class_and_subclass(lock, key, sub) \
344 do { (void)(key); } while (0) 345 do { (void)(key); } while (0)
345#define lockdep_set_subclass(lock, sub) do { } while (0) 346#define lockdep_set_subclass(lock, sub) do { } while (0)
diff --git a/include/net/sock.h b/include/net/sock.h
index c04f9e18ea22..2f47107f6d0f 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -815,7 +815,7 @@ static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb)
815 */ 815 */
816#define sock_lock_init_class_and_name(sk, sname, skey, name, key) \ 816#define sock_lock_init_class_and_name(sk, sname, skey, name, key) \
817do { \ 817do { \
818 sk->sk_lock.owned = 0; \ 818 sk->sk_lock.owned = 0; \
819 init_waitqueue_head(&sk->sk_lock.wq); \ 819 init_waitqueue_head(&sk->sk_lock.wq); \
820 spin_lock_init(&(sk)->sk_lock.slock); \ 820 spin_lock_init(&(sk)->sk_lock.slock); \
821 debug_check_no_locks_freed((void *)&(sk)->sk_lock, \ 821 debug_check_no_locks_freed((void *)&(sk)->sk_lock, \
diff --git a/net/core/sock.c b/net/core/sock.c
index 5e2a3132a8c9..341e39456952 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -136,7 +136,6 @@
136static struct lock_class_key af_family_keys[AF_MAX]; 136static struct lock_class_key af_family_keys[AF_MAX];
137static struct lock_class_key af_family_slock_keys[AF_MAX]; 137static struct lock_class_key af_family_slock_keys[AF_MAX];
138 138
139#ifdef CONFIG_DEBUG_LOCK_ALLOC
140/* 139/*
141 * Make lock validator output more readable. (we pre-construct these 140 * Make lock validator output more readable. (we pre-construct these
142 * strings build-time, so that runtime initialization of socket 141 * strings build-time, so that runtime initialization of socket
@@ -187,7 +186,6 @@ static const char *af_family_clock_key_strings[AF_MAX+1] = {
187 "clock-AF_RXRPC" , "clock-AF_ISDN" , "clock-AF_PHONET" , 186 "clock-AF_RXRPC" , "clock-AF_ISDN" , "clock-AF_PHONET" ,
188 "clock-AF_MAX" 187 "clock-AF_MAX"
189}; 188};
190#endif
191 189
192/* 190/*
193 * sk_callback_lock locking rules are per-address-family, 191 * sk_callback_lock locking rules are per-address-family,