diff options
Diffstat (limited to 'net/ipx/sysctl_net_ipx.c')
-rw-r--r-- | net/ipx/sysctl_net_ipx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipx/sysctl_net_ipx.c b/net/ipx/sysctl_net_ipx.c index bd6dca00fb85..035880709e84 100644 --- a/net/ipx/sysctl_net_ipx.c +++ b/net/ipx/sysctl_net_ipx.c | |||
@@ -8,6 +8,7 @@ | |||
8 | 8 | ||
9 | #include <linux/mm.h> | 9 | #include <linux/mm.h> |
10 | #include <linux/sysctl.h> | 10 | #include <linux/sysctl.h> |
11 | #include <net/net_namespace.h> | ||
11 | 12 | ||
12 | #ifndef CONFIG_SYSCTL | 13 | #ifndef CONFIG_SYSCTL |
13 | #error This file should not be compiled without CONFIG_SYSCTL defined | 14 | #error This file should not be compiled without CONFIG_SYSCTL defined |
@@ -37,10 +38,10 @@ static struct ctl_table_header *ipx_table_header; | |||
37 | 38 | ||
38 | void ipx_register_sysctl(void) | 39 | void ipx_register_sysctl(void) |
39 | { | 40 | { |
40 | ipx_table_header = register_sysctl_paths(ipx_path, ipx_table); | 41 | ipx_table_header = register_net_sysctl_table(&init_net, ipx_path, ipx_table); |
41 | } | 42 | } |
42 | 43 | ||
43 | void ipx_unregister_sysctl(void) | 44 | void ipx_unregister_sysctl(void) |
44 | { | 45 | { |
45 | unregister_sysctl_table(ipx_table_header); | 46 | unregister_net_sysctl_table(ipx_table_header); |
46 | } | 47 | } |