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>
This commit is contained in:
committed by
David S. Miller
parent
7e12bb0adb
commit
11165f1457
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user