diff options
| author | David S. Miller <davem@nuts.ninka.net> | 2003-05-14 06:17:16 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-05-14 06:17:16 -0700 |
| commit | 6b994273ae6522f0ea90397bfb2e5b48e78b6439 (patch) | |
| tree | d70fd8f38c919b2dc1708c80ece006f9dcf754b6 | |
| parent | 80dbe6fd7328247eb36b62a39e89e91e76dc12c4 (diff) | |
[TCP]: extern __inline__ --> static inline where appropriate.
| -rw-r--r-- | include/net/tcp.h | 8 | ||||
| -rw-r--r-- | net/ipv4/tcp.c | 2 | ||||
| -rw-r--r-- | net/ipv4/tcp_diag.c | 2 | ||||
| -rw-r--r-- | net/ipv4/tcp_ipv4.c | 12 | ||||
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 6 |
5 files changed, 15 insertions, 15 deletions
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); diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 332f46fadd80..73d52ec6d30e 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2101,7 +2101,7 @@ out: /* These states need RST on ABORT according to RFC793 */ -extern __inline__ int tcp_need_reset(int state) +static inline int tcp_need_reset(int state) { return (1 << state) & (TCPF_ESTABLISHED | TCPF_CLOSE_WAIT | TCPF_FIN_WAIT1 | diff --git a/net/ipv4/tcp_diag.c b/net/ipv4/tcp_diag.c index f7561cbac6ff..f62883773c32 100644 --- a/net/ipv4/tcp_diag.c +++ b/net/ipv4/tcp_diag.c @@ -603,7 +603,7 @@ err_inval: } -extern __inline__ void tcpdiag_rcv_skb(struct sk_buff *skb) +static inline void tcpdiag_rcv_skb(struct sk_buff *skb) { int err; struct nlmsghdr * nlh; diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 8d38f9845a10..c1a78cee393c 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -171,7 +171,7 @@ static __inline__ void __tcp_inherit_port(struct sock *sk, struct sock *child) spin_unlock(&head->lock); } -__inline__ void tcp_inherit_port(struct sock *sk, struct sock *child) +inline void tcp_inherit_port(struct sock *sk, struct sock *child) { local_bh_disable(); __tcp_inherit_port(sk, child); @@ -316,7 +316,7 @@ static void __tcp_put_port(struct sock *sk) spin_unlock(&head->lock); } -__inline__ void tcp_put_port(struct sock *sk) +inline void tcp_put_port(struct sock *sk) { local_bh_disable(); __tcp_put_port(sk); @@ -458,8 +458,8 @@ static struct sock *__tcp_v4_lookup_listener(struct sock *sk, u32 daddr, } /* Optimize the common listener case. */ -__inline__ struct sock *tcp_v4_lookup_listener(u32 daddr, unsigned short hnum, - int dif) +inline struct sock *tcp_v4_lookup_listener(u32 daddr, unsigned short hnum, + int dif) { struct sock *sk; @@ -529,8 +529,8 @@ static inline struct sock *__tcp_v4_lookup(u32 saddr, u16 sport, return sk ? : tcp_v4_lookup_listener(daddr, hnum, dif); } -__inline__ struct sock *tcp_v4_lookup(u32 saddr, u16 sport, u32 daddr, - u16 dport, int dif) +inline struct sock *tcp_v4_lookup(u32 saddr, u16 sport, u32 daddr, + u16 dport, int dif) { struct sock *sk; diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index c8b35103d5ae..4a9aa1a191ae 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -370,9 +370,9 @@ static inline struct sock *__tcp_v6_lookup(struct in6_addr *saddr, u16 sport, return tcp_v6_lookup_listener(daddr, hnum, dif); } -__inline__ struct sock *tcp_v6_lookup(struct in6_addr *saddr, u16 sport, - struct in6_addr *daddr, u16 dport, - int dif) +inline struct sock *tcp_v6_lookup(struct in6_addr *saddr, u16 sport, + struct in6_addr *daddr, u16 dport, + int dif) { struct sock *sk; |
