* [PATCH net-next] tcp: make function tcp_retransmit_stamp() static
@ 2018-07-25 6:06 Wei Yongjun
2018-07-25 23:36 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2018-07-25 6:06 UTC (permalink / raw)
To: Eric Dumazet, Jon Maxwell, Alexey Kuznetsov, Hideaki YOSHIFUJI
Cc: Wei Yongjun, netdev, kernel-janitors
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>
---
net/ipv4/tcp_timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index a242f88..7fdf222 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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] tcp: make function tcp_retransmit_stamp() static
2018-07-25 6:06 [PATCH net-next] tcp: make function tcp_retransmit_stamp() static Wei Yongjun
@ 2018-07-25 23:36 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-07-25 23:36 UTC (permalink / raw)
To: weiyongjun1
Cc: edumazet, jmaxwell37, kuznet, yoshfuji, netdev, kernel-janitors
From: Wei Yongjun <weiyongjun1@huawei.com>
Date: Wed, 25 Jul 2018 06:06:07 +0000
> 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>
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-26 0:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-25 6:06 [PATCH net-next] tcp: make function tcp_retransmit_stamp() static Wei Yongjun
2018-07-25 23:36 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).