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
8575258e
Commit
8575258e
authored
Oct 06, 2003
by
Luiz Capitulino
Committed by
David S. Miller
Oct 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: Fix route.c build warning when procfs is disabled.
parent
96ab3e2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
net/ipv4/route.c
net/ipv4/route.c
+6
-10
No files found.
net/ipv4/route.c
View file @
8575258e
...
...
@@ -2779,8 +2779,8 @@ int __init ip_rt_init(void)
ip_rt_max_size
=
(
rt_hash_mask
+
1
)
*
16
;
rt_cache_stat
=
alloc_percpu
(
struct
rt_cache_stat
);
if
(
!
rt_cache_stat
)
goto
out_enomem1
;
if
(
!
rt_cache_stat
)
return
-
ENOMEM
;
devinet_init
();
ip_fib_init
();
...
...
@@ -2805,8 +2805,10 @@ int __init ip_rt_init(void)
#ifdef CONFIG_PROC_FS
if
(
!
proc_net_fops_create
(
"rt_cache"
,
S_IRUGO
,
&
rt_cache_seq_fops
)
||
!
proc_net_fops_create
(
"rt_cache_stat"
,
S_IRUGO
,
&
rt_cpu_seq_fops
))
goto
out_enomem
;
!
proc_net_fops_create
(
"rt_cache_stat"
,
S_IRUGO
,
&
rt_cpu_seq_fops
))
{
free_percpu
(
rt_cache_stat
);
return
-
ENOMEM
;
}
#ifdef CONFIG_NET_CLS_ROUTE
create_proc_read_entry
(
"rt_acct"
,
0
,
proc_net
,
ip_rt_acct_read
,
NULL
);
...
...
@@ -2816,13 +2818,7 @@ int __init ip_rt_init(void)
xfrm_init
();
xfrm4_init
();
#endif
out:
return
rc
;
out_enomem:
free_percpu
(
rt_cache_stat
);
out_enomem1:
rc
=
-
ENOMEM
;
goto
out
;
}
EXPORT_SYMBOL
(
__ip_select_ident
);
...
...
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