aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-01-10 07:43:15 +0000
committerDavid S. Miller <davem@davemloft.net>2018-01-10 15:55:35 -0500
commit809a79e913eed4ca02bfe5f78d3b7a56c7d8d7a6 (patch)
tree832bdd0acae07e3d944def465e04aa7f9f3c0673 /net/ipv4/tcp.c
parentnet/mlx5e: fix error return code in mlx5e_alloc_rq() (diff)
downloadlinux-dev-809a79e913eed4ca02bfe5f78d3b7a56c7d8d7a6.tar.xz
linux-dev-809a79e913eed4ca02bfe5f78d3b7a56c7d8d7a6.zip
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 <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index f68cb33d50d1..d7cf861bf699 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;