Skip to content

Commit

Permalink
tcp: make function tcp_retransmit_stamp() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Jul 25, 2018
1 parent 158abbf commit 5547720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/tcp_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5547720

Please sign in to comment.