Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6b994273
Commit
6b994273
authored
May 14, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: extern __inline__ --> static inline where appropriate.
parent
80dbe6fd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
15 deletions
+15
-15
include/net/tcp.h
include/net/tcp.h
+4
-4
net/ipv4/tcp.c
net/ipv4/tcp.c
+1
-1
net/ipv4/tcp_diag.c
net/ipv4/tcp_diag.c
+1
-1
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_ipv4.c
+6
-6
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+3
-3
No files found.
include/net/tcp.h
View file @
6b994273
...
...
@@ -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
);
...
...
net/ipv4/tcp.c
View file @
6b994273
...
...
@@ -2101,7 +2101,7 @@ void tcp_close(struct sock *sk, long timeout)
/* 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
|
...
...
net/ipv4/tcp_diag.c
View file @
6b994273
...
...
@@ -603,7 +603,7 @@ tcpdiag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
}
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
;
...
...
net/ipv4/tcp_ipv4.c
View file @
6b994273
...
...
@@ -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
;
...
...
net/ipv6/tcp_ipv6.c
View file @
6b994273
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment