Skip to contentSkip to conversation

tcp: tcp_enter_quickack_mode can be static

PATCH Applied Stephen Hemminger 2 participants 2 messages Sep 29, 2010 – Sep 30, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcp: tcp_enter_quickack_mode can be static

Function only used in tcp_input.c

---
 include/net/tcp.h    |    2 --
 net/ipv4/tcp_input.c |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)
net/ipv4/tcp_input.c +1 -1
@@ -182,7 +182,7 @@ static void tcp_incr_quickack(struct soc
 		icsk->icsk_ack.quick = min(quickacks, TCP_MAX_QUICKACKS);
 }
 
-void tcp_enter_quickack_mode(struct sock *sk)
+static void tcp_enter_quickack_mode(struct sock *sk)
 {
 	struct inet_connection_sock *icsk = inet_csk(sk);
 	tcp_incr_quickack(sk);
include/net/tcp.h +0 -2
@@ -346,8 +346,6 @@ static inline void tcp_dec_quickack_mode
 	}
 }
 
-extern void tcp_enter_quickack_mode(struct sock *sk);
-
 #define	TCP_ECN_OK		1
 #define	TCP_ECN_QUEUE_CWR	2
 #define	TCP_ECN_DEMAND_CWR	4