diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-10-18 14:27:29 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-21 03:09:42 -0700 |
commit | 11165f1457181e4499e5eada442434a07827ffd8 (patch) | |
tree | a681641ba47d5b10a928e89b8ee30acd1b2fa332 /net/socket.c | |
parent | 7e12bb0adb5b3114a73098d3536b3c45635e6c95 (diff) | |
download | linux-3.10-11165f1457181e4499e5eada442434a07827ffd8.tar.gz linux-3.10-11165f1457181e4499e5eada442434a07827ffd8.tar.bz2 linux-3.10-11165f1457181e4499e5eada442434a07827ffd8.zip |
socket: localize functions
A couple of functions in socket.c are only used there and
should be localized.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/socket.c b/net/socket.c index 717a5f1c879..72da57d6ab7 100644 --- a/net/socket.c +++ b/net/socket.c @@ -209,8 +209,8 @@ int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr *kaddr) * specified. Zero is returned for a success. */ -int move_addr_to_user(struct sockaddr *kaddr, int klen, void __user *uaddr, - int __user *ulen) +static int move_addr_to_user(struct sockaddr *kaddr, int klen, + void __user *uaddr, int __user *ulen) { int err; int len; @@ -661,7 +661,8 @@ void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk, } EXPORT_SYMBOL_GPL(__sock_recv_timestamp); -inline void sock_recv_drops(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) +static inline void sock_recv_drops(struct msghdr *msg, struct sock *sk, + struct sk_buff *skb) { if (sock_flag(sk, SOCK_RXQ_OVFL) && skb && skb->dropcount) put_cmsg(msg, SOL_SOCKET, SO_RXQ_OVFL, |