From: Wei Yongjun Date: Wed, 10 Jan 2018 07:43:15 +0000 (+0000) Subject: tcp: make local function tcp_recv_timestamp static X-Git-Tag: v4.16-rc1~123^2~190 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=809a79e913eed4ca02bfe5f78d3b7a56c7d8d7a6;p=thirdparty%2Fkernel%2Flinux.git tcp: make local function tcp_recv_timestamp static Fixes the following sparse warning: net/ipv4/tcp.c:1736:6: warning: symbol 'tcp_recv_timestamp' was not declared. Should it be static? Signed-off-by: Wei Yongjun Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index f68cb33d50d1d..d7cf861bf699f 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -1733,8 +1733,8 @@ static void tcp_update_recv_tstamps(struct sk_buff *skb, } /* Similar to __sock_recv_timestamp, but does not require an skb */ -void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk, - struct scm_timestamping *tss) +static void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk, + struct scm_timestamping *tss) { struct timeval tv; bool has_timestamping = false;