aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-07-25 06:06:07 +0000
committerDavid S. Miller <davem@davemloft.net>2018-07-25 16:35:45 -0700
commit55477206f15cf725178be23344179bd83f773c7b (patch)
treee50df4dbac8d9448432267b48a0377bfbfbfd276 /net
parentnet/sched: cls_flower: Use correct inline function for assignment of vlan tpid (diff)
downloadlinux-dev-55477206f15cf725178be23344179bd83f773c7b.tar.xz
linux-dev-55477206f15cf725178be23344179bd83f773c7b.zip
tcp: make function tcp_retransmit_stamp() static
Fixes the following sparse warnings: net/ipv4/tcp_timer.c:25:5: warning: symbol 'tcp_retransmit_stamp' 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 '')
-rw-r--r--net/ipv4/tcp_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index a242f8874629..7fdf222a0bdf 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -22,7 +22,7 @@
#include <linux/gfp.h>
#include <net/tcp.h>
-u32 tcp_retransmit_stamp(const struct sock *sk)
+static u32 tcp_retransmit_stamp(const struct sock *sk)
{
u32 start_ts = tcp_sk(sk)->retrans_stamp;