projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
158abbf
)
tcp: make function tcp_retransmit_stamp() static
author
Wei Yongjun
<weiyongjun1@huawei.com>
Wed, 25 Jul 2018 06:06:07 +0000
(06:06 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 25 Jul 2018 23:35:45 +0000
(16:35 -0700)
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>
net/ipv4/tcp_timer.c
patch
|
blob
|
history
diff --git
a/net/ipv4/tcp_timer.c
b/net/ipv4/tcp_timer.c
index a242f88746296e65418f236ac488b0de2dd20d4a..7fdf222a0bdfe9775970082f6b5dcdcc82b2ae1a 100644
(file)
--- 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;