Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb0cd2fb authored by Changli Gao's avatar Changli Gao Committed by David S. Miller
Browse files

net: ping: make local functions static



As these functions are only used in this file.

Signed-off-by: default avatarChangli Gao <xiaosuo@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6b60d7b9
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -449,7 +449,7 @@ static int ping_push_pending_frames(struct sock *sk, struct pingfakehdr *pfh, st
	return ip_push_pending_frames(sk, fl4);
}

int ping_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
static int ping_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
			size_t len)
{
	struct net *net = sock_net(sk);
@@ -621,7 +621,7 @@ int ping_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
	goto out;
}

int ping_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
static int ping_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
			size_t len, int noblock, int flags, int *addr_len)
{
	struct inet_sock *isk = inet_sk(sk);