summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/net/sock.h2
-rw-r--r--net/core/sock.c6
2 files changed, 2 insertions, 6 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index bfad716ce409..c9e1bad6f067 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -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
* 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)
extern void FASTCALL(lock_sock(struct sock *sk));
diff --git a/net/core/sock.c b/net/core/sock.c
index 07043af1b1f2..9e970c64ee2d 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -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);
}
-void __lock_sock(struct sock *sk)
+static void __lock_sock(struct sock *sk)
{
DEFINE_WAIT(wait);
@@ -929,7 +929,7 @@ void __lock_sock(struct sock *sk)
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;
@@ -1359,8 +1359,6 @@ void sk_free_slab(struct proto *prot)
EXPORT_SYMBOL(sk_free_slab);
-EXPORT_SYMBOL(__lock_sock);
-EXPORT_SYMBOL(__release_sock);
EXPORT_SYMBOL(sk_alloc);
EXPORT_SYMBOL(sk_free);
EXPORT_SYMBOL(sk_send_sigurg);