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
Show 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
...
@@ -2780,7 +2780,7 @@ int __init ip_rt_init(void)
...
@@ -2780,7 +2780,7 @@ int __init ip_rt_init(void)
rt_cache_stat
=
alloc_percpu
(
struct
rt_cache_stat
);
rt_cache_stat
=
alloc_percpu
(
struct
rt_cache_stat
);
if
(
!
rt_cache_stat
)
if
(
!
rt_cache_stat
)
goto
out_enomem1
;
return
-
ENOMEM
;
devinet_init
();
devinet_init
();
ip_fib_init
();
ip_fib_init
();
...
@@ -2805,8 +2805,10 @@ int __init ip_rt_init(void)
...
@@ -2805,8 +2805,10 @@ int __init ip_rt_init(void)
#ifdef CONFIG_PROC_FS
#ifdef CONFIG_PROC_FS
if
(
!
proc_net_fops_create
(
"rt_cache"
,
S_IRUGO
,
&
rt_cache_seq_fops
)
||
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
))
!
proc_net_fops_create
(
"rt_cache_stat"
,
S_IRUGO
,
&
rt_cpu_seq_fops
))
{
goto
out_enomem
;
free_percpu
(
rt_cache_stat
);
return
-
ENOMEM
;
}
#ifdef CONFIG_NET_CLS_ROUTE
#ifdef CONFIG_NET_CLS_ROUTE
create_proc_read_entry
(
"rt_acct"
,
0
,
proc_net
,
ip_rt_acct_read
,
NULL
);
create_proc_read_entry
(
"rt_acct"
,
0
,
proc_net
,
ip_rt_acct_read
,
NULL
);
...
@@ -2816,13 +2818,7 @@ int __init ip_rt_init(void)
...
@@ -2816,13 +2818,7 @@ int __init ip_rt_init(void)
xfrm_init
();
xfrm_init
();
xfrm4_init
();
xfrm4_init
();
#endif
#endif
out:
return
rc
;
return
rc
;
out_enomem:
free_percpu
(
rt_cache_stat
);
out_enomem1:
rc
=
-
ENOMEM
;
goto
out
;
}
}
EXPORT_SYMBOL
(
__ip_select_ident
);
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