tcp: make local functions static
Subsystems (3)
PATCH 1/1 tcp: make local functions static
The following are only used in one file:
tcp_connect_init
tcp_set_rto
Signed-off-by Stephen Hemminger <[email protected]>
--- include/net/tcp.h | 3 --- net/ipv4/tcp_input.c | 2 +- net/ipv4/tcp_output.c | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-)
include/net/tcp.h +0 -3
@@ -468,7 +468,6 @@ struct sk_buff *tcp_make_synack(struct s struct tcp_fastopen_cookie *foc);int tcp_disconnect (struct sock *sk,int flags); -void tcp_connect_init (struct sock *sk);void tcp_finish_connect (struct sock *sk,struct sk_buff *skb);int tcp_send_rcvq (struct sock *sk,struct msghdr *msg,size_t size);void inet_sk_rx_dst_set (struct sock *sk,const struct sk_buff *skb);
@@ -623,8 +622,6 @@ static inline u32 __tcp_set_rto(const streturn (tp->srtt >>3 ) + tp->rttvar; } -void tcp_set_rto (struct sock *sk); -static inline void __tcp_fast_path_on (struct tcp_sock *tp,u32 snd_wnd) { tp->pred_flags = htonl((tp->tcp_header_len << 26) |
net/ipv4/tcp_input.c +1 -1
@@ -766,7 +766,7 @@ static void tcp_update_pacing_rate(struc/* Calculate rto without backoff. This is the second half of Van Jacobson's * routine referred to above. */ -void tcp_set_rto (struct sock *sk) +static void tcp_set_rto (struct sock *sk) {const struct tcp_sock *tp =tcp_sk (sk);/* Old crap is replaced with new one. 8)
net/ipv4/tcp_output.c +1 -1
@@ -2777,7 +2777,7 @@ struct sk_buff *tcp_make_synack(struct sEXPORT_SYMBOL (tcp_make_synack);/* Do all connect socket setups that can be done AF independent. */ -void tcp_connect_init (struct sock *sk) +static void tcp_connect_init (struct sock *sk) {const struct dst_entry *dst =__sk_dst_get (sk);struct tcp_sock *tp =tcp_sk (sk);
From: Stephen Hemminger <[email protected]>
Date: Sun, 29 Dec 2013 11:39:51 -0800
Quoted 5 lines
The following are only used in one file:
tcp_connect_init
tcp_set_rtoSigned-off-by Stephen Hemminger <[email protected]>
Applied.