From 6b994273ae6522f0ea90397bfb2e5b48e78b6439 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Wed, 14 May 2003 06:17:16 -0700 Subject: [TCP]: extern __inline__ --> static inline where appropriate. --- include/net/tcp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/net/tcp.h b/include/net/tcp.h index 94c31a3fef43..ee1ef9aa5c7e 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -614,19 +614,19 @@ struct tcp_func { * and worry about wraparound (automatic with unsigned arithmetic). */ -extern __inline int before(__u32 seq1, __u32 seq2) +static inline int before(__u32 seq1, __u32 seq2) { return (__s32)(seq1-seq2) < 0; } -extern __inline int after(__u32 seq1, __u32 seq2) +static inline int after(__u32 seq1, __u32 seq2) { return (__s32)(seq2-seq1) < 0; } /* is s2<=s1<=s3 ? */ -extern __inline int between(__u32 seq1, __u32 seq2, __u32 seq3) +static inline int between(__u32 seq1, __u32 seq2, __u32 seq3) { return seq3 - seq2 >= seq1 - seq2; } @@ -642,7 +642,7 @@ DECLARE_SNMP_STAT(struct tcp_mib, tcp_statistics); #define TCP_ADD_STATS_BH(field, val) SNMP_ADD_STATS_BH(tcp_statistics, field, val) #define TCP_ADD_STATS_USER(field, val) SNMP_ADD_STATS_USER(tcp_statistics, field, val) -extern __inline__ void tcp_put_port(struct sock *sk); +extern inline void tcp_put_port(struct sock *sk); extern void tcp_inherit_port(struct sock *sk, struct sock *child); extern void tcp_v4_err(struct sk_buff *skb, u32); -- cgit v1.2.3