Commit 7ad988a2 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by David S. Miller

[NET]: Mark __{lock,release}_sock() static.

Signed-off-by: default avatarArjan van de Ven <arjan@infradead.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a107e538
...@@ -698,8 +698,6 @@ static inline int sk_stream_rmem_schedule(struct sock *sk, struct sk_buff *skb) ...@@ -698,8 +698,6 @@ static inline int sk_stream_rmem_schedule(struct sock *sk, struct sk_buff *skb)
* Since ~2.3.5 it is also exclusive sleep lock serializing * Since ~2.3.5 it is also exclusive sleep lock serializing
* accesses from user process context. * accesses from user process context.
*/ */
extern void __lock_sock(struct sock *sk);
extern void __release_sock(struct sock *sk);
#define sock_owned_by_user(sk) ((sk)->sk_lock.owner) #define sock_owned_by_user(sk) ((sk)->sk_lock.owner)
extern void FASTCALL(lock_sock(struct sock *sk)); extern void FASTCALL(lock_sock(struct sock *sk));
......
...@@ -913,7 +913,7 @@ struct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, ...@@ -913,7 +913,7 @@ struct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size,
return sock_alloc_send_pskb(sk, size, 0, noblock, errcode); return sock_alloc_send_pskb(sk, size, 0, noblock, errcode);
} }
void __lock_sock(struct sock *sk) static void __lock_sock(struct sock *sk)
{ {
DEFINE_WAIT(wait); DEFINE_WAIT(wait);
...@@ -929,7 +929,7 @@ void __lock_sock(struct sock *sk) ...@@ -929,7 +929,7 @@ void __lock_sock(struct sock *sk)
finish_wait(&sk->sk_lock.wq, &wait); finish_wait(&sk->sk_lock.wq, &wait);
} }
void __release_sock(struct sock *sk) static void __release_sock(struct sock *sk)
{ {
struct sk_buff *skb = sk->sk_backlog.head; struct sk_buff *skb = sk->sk_backlog.head;
...@@ -1359,8 +1359,6 @@ void sk_free_slab(struct proto *prot) ...@@ -1359,8 +1359,6 @@ void sk_free_slab(struct proto *prot)
EXPORT_SYMBOL(sk_free_slab); EXPORT_SYMBOL(sk_free_slab);
EXPORT_SYMBOL(__lock_sock);
EXPORT_SYMBOL(__release_sock);
EXPORT_SYMBOL(sk_alloc); EXPORT_SYMBOL(sk_alloc);
EXPORT_SYMBOL(sk_free); EXPORT_SYMBOL(sk_free);
EXPORT_SYMBOL(sk_send_sigurg); EXPORT_SYMBOL(sk_send_sigurg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment