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
nexedi
linux
Commits
9397dee2
Commit
9397dee2
authored
Apr 27, 2004
by
Stephen Hemminger
Committed by
David S. Miller
Apr 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: Use static in several places.
More functions and data that should be static.
parent
0cc4d622
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
net/ipv4/devinet.c
net/ipv4/devinet.c
+1
-1
net/ipv4/tcp.c
net/ipv4/tcp.c
+1
-4
net/ipv4/tcp_input.c
net/ipv4/tcp_input.c
+1
-1
No files found.
net/ipv4/devinet.c
View file @
9397dee2
...
@@ -998,7 +998,7 @@ static int inetdev_event(struct notifier_block *this, unsigned long event,
...
@@ -998,7 +998,7 @@ static int inetdev_event(struct notifier_block *this, unsigned long event,
return
NOTIFY_DONE
;
return
NOTIFY_DONE
;
}
}
struct
notifier_block
ip_netdev_notifier
=
{
st
atic
st
ruct
notifier_block
ip_netdev_notifier
=
{
.
notifier_call
=
inetdev_event
,
.
notifier_call
=
inetdev_event
,
};
};
...
...
net/ipv4/tcp.c
View file @
9397dee2
...
@@ -753,9 +753,6 @@ static int wait_for_tcp_memory(struct sock *sk, long *timeo)
...
@@ -753,9 +753,6 @@ static int wait_for_tcp_memory(struct sock *sk, long *timeo)
goto
out
;
goto
out
;
}
}
ssize_t
do_tcp_sendpages
(
struct
sock
*
sk
,
struct
page
**
pages
,
int
poffset
,
size_t
psize
,
int
flags
);
static
inline
int
can_coalesce
(
struct
sk_buff
*
skb
,
int
i
,
struct
page
*
page
,
static
inline
int
can_coalesce
(
struct
sk_buff
*
skb
,
int
i
,
struct
page
*
page
,
int
off
)
int
off
)
{
{
...
@@ -836,7 +833,7 @@ static int tcp_error(struct sock *sk, int flags, int err)
...
@@ -836,7 +833,7 @@ static int tcp_error(struct sock *sk, int flags, int err)
return
err
;
return
err
;
}
}
ssize_t
do_tcp_sendpages
(
struct
sock
*
sk
,
struct
page
**
pages
,
int
poffset
,
s
tatic
s
size_t
do_tcp_sendpages
(
struct
sock
*
sk
,
struct
page
**
pages
,
int
poffset
,
size_t
psize
,
int
flags
)
size_t
psize
,
int
flags
)
{
{
struct
tcp_opt
*
tp
=
tcp_sk
(
sk
);
struct
tcp_opt
*
tp
=
tcp_sk
(
sk
);
...
...
net/ipv4/tcp_input.c
View file @
9397dee2
...
@@ -1059,7 +1059,7 @@ void tcp_enter_frto(struct sock *sk)
...
@@ -1059,7 +1059,7 @@ void tcp_enter_frto(struct sock *sk)
* which indicates that we should follow the traditional RTO recovery,
* which indicates that we should follow the traditional RTO recovery,
* i.e. mark everything lost and do go-back-N retransmission.
* i.e. mark everything lost and do go-back-N retransmission.
*/
*/
void
tcp_enter_frto_loss
(
struct
sock
*
sk
)
static
void
tcp_enter_frto_loss
(
struct
sock
*
sk
)
{
{
struct
tcp_opt
*
tp
=
tcp_sk
(
sk
);
struct
tcp_opt
*
tp
=
tcp_sk
(
sk
);
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
...
...
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