tcp: make local function tcp_recv_timestamp static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 10 Jan 2018 07:43:15 +0000 (07:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 20:55:35 +0000 (15:55 -0500)
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 <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c

index f68cb33d50d1d43a4cf6234e7e10e2a689974eb5..d7cf861bf699f61c1e51dac15148afdf89c54b39 100644 (file)
@@ -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;