From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH net-next 5/10] tcp: make local functions static Date: Mon, 16 Dec 2013 10:40:37 -0800 Message-ID: <20131216104037.314a429b@nehalam.linuxnetplumber.net> References: <20131216103606.62524131@nehalam.linuxnetplumber.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: David Miller Return-path: Received: from mail-pd0-f170.google.com ([209.85.192.170]:36215 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755541Ab3LPTk2 (ORCPT ); Mon, 16 Dec 2013 14:40:28 -0500 Received: by mail-pd0-f170.google.com with SMTP id g10so5802053pdj.1 for ; Mon, 16 Dec 2013 11:40:27 -0800 (PST) In-Reply-To: <20131216103606.62524131@nehalam.linuxnetplumber.net> Sender: netdev-owner@vger.kernel.org List-ID: Signed-off-by: Stephen Hemminger --- a/include/net/tcp.h 2013-12-12 12:59:44.620705224 -0800 +++ b/include/net/tcp.h 2013-12-12 13:01:33.463099974 -0800 @@ -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 st return (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) | --- a/net/ipv4/tcp_input.c 2013-12-12 12:59:44.620705224 -0800 +++ b/net/ipv4/tcp_input.c 2013-12-12 13:01:24.807227669 -0800 @@ -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) --- a/net/ipv4/tcp_output.c 2013-12-12 12:59:44.576705873 -0800 +++ b/net/ipv4/tcp_output.c 2013-12-12 13:01:33.463099974 -0800 @@ -2762,7 +2762,7 @@ struct sk_buff *tcp_make_synack(struct s EXPORT_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);