diff options
-rw-r--r-- | include/linux/netfilter.h | 6 | ||||
-rw-r--r-- | include/net/ip.h | 3 | ||||
-rw-r--r-- | include/net/ip_vs.h | 2 | ||||
-rw-r--r-- | include/net/ipv6.h | 1 | ||||
-rw-r--r-- | net/core/sysctl_net_core.c | 6 | ||||
-rw-r--r-- | net/ipv4/netfilter.c | 10 | ||||
-rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 7 | ||||
-rw-r--r-- | net/ipv6/sysctl_net_ipv6.c | 7 | ||||
-rw-r--r-- | net/netfilter/core.c | 9 | ||||
-rw-r--r-- | net/netfilter/ipvs/ip_vs_ctl.c | 7 |
10 files changed, 0 insertions, 58 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 29734be334c1..ff9c84c29b28 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h | |||
@@ -154,12 +154,6 @@ void nf_unregister_hooks(struct nf_hook_ops *reg, unsigned int n); | |||
154 | int nf_register_sockopt(struct nf_sockopt_ops *reg); | 154 | int nf_register_sockopt(struct nf_sockopt_ops *reg); |
155 | void nf_unregister_sockopt(struct nf_sockopt_ops *reg); | 155 | void nf_unregister_sockopt(struct nf_sockopt_ops *reg); |
156 | 156 | ||
157 | #ifdef CONFIG_SYSCTL | ||
158 | /* Sysctl registration */ | ||
159 | extern struct ctl_path nf_net_netfilter_sysctl_path[]; | ||
160 | extern struct ctl_path nf_net_ipv4_netfilter_sysctl_path[]; | ||
161 | #endif /* CONFIG_SYSCTL */ | ||
162 | |||
163 | extern struct list_head nf_hooks[NFPROTO_NUMPROTO][NF_MAX_HOOKS]; | 157 | extern struct list_head nf_hooks[NFPROTO_NUMPROTO][NF_MAX_HOOKS]; |
164 | 158 | ||
165 | #if defined(CONFIG_JUMP_LABEL) | 159 | #if defined(CONFIG_JUMP_LABEL) |
diff --git a/include/net/ip.h b/include/net/ip.h index b53d65f24f7b..94ddb69cc0f3 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -222,9 +222,6 @@ static inline int inet_is_reserved_local_port(int port) | |||
222 | 222 | ||
223 | extern int sysctl_ip_nonlocal_bind; | 223 | extern int sysctl_ip_nonlocal_bind; |
224 | 224 | ||
225 | extern struct ctl_path net_core_path[]; | ||
226 | extern struct ctl_path net_ipv4_ctl_path[]; | ||
227 | |||
228 | /* From inetpeer.c */ | 225 | /* From inetpeer.c */ |
229 | extern int inet_peer_threshold; | 226 | extern int inet_peer_threshold; |
230 | extern int inet_peer_minttl; | 227 | extern int inet_peer_minttl; |
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index a903a828bcef..990216ded6b3 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -10,7 +10,6 @@ | |||
10 | 10 | ||
11 | #include <asm/types.h> /* for __uXX types */ | 11 | #include <asm/types.h> /* for __uXX types */ |
12 | 12 | ||
13 | #include <linux/sysctl.h> /* for ctl_path */ | ||
14 | #include <linux/list.h> /* for struct list_head */ | 13 | #include <linux/list.h> /* for struct list_head */ |
15 | #include <linux/spinlock.h> /* for struct rwlock_t */ | 14 | #include <linux/spinlock.h> /* for struct rwlock_t */ |
16 | #include <linux/atomic.h> /* for struct atomic_t */ | 15 | #include <linux/atomic.h> /* for struct atomic_t */ |
@@ -1184,7 +1183,6 @@ extern void ip_vs_scheduler_err(struct ip_vs_service *svc, const char *msg); | |||
1184 | * IPVS control data and functions (from ip_vs_ctl.c) | 1183 | * IPVS control data and functions (from ip_vs_ctl.c) |
1185 | */ | 1184 | */ |
1186 | extern struct ip_vs_stats ip_vs_stats; | 1185 | extern struct ip_vs_stats ip_vs_stats; |
1187 | extern const struct ctl_path net_vs_ctl_path[]; | ||
1188 | extern int sysctl_ip_vs_sync_ver; | 1186 | extern int sysctl_ip_vs_sync_ver; |
1189 | 1187 | ||
1190 | extern void ip_vs_sync_switch_mode(struct net *net, int mode); | 1188 | extern void ip_vs_sync_switch_mode(struct net *net, int mode); |
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index e1a85adbeee3..4332e9aad853 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -113,7 +113,6 @@ struct frag_hdr { | |||
113 | 113 | ||
114 | /* sysctls */ | 114 | /* sysctls */ |
115 | extern int sysctl_mld_max_msf; | 115 | extern int sysctl_mld_max_msf; |
116 | extern struct ctl_path net_ipv6_ctl_path[]; | ||
117 | 116 | ||
118 | #define _DEVINC(net, statname, modifier, idev, field) \ | 117 | #define _DEVINC(net, statname, modifier, idev, field) \ |
119 | ({ \ | 118 | ({ \ |
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index 64924e345a9b..a7c36845b123 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c | |||
@@ -203,12 +203,6 @@ static struct ctl_table netns_core_table[] = { | |||
203 | { } | 203 | { } |
204 | }; | 204 | }; |
205 | 205 | ||
206 | __net_initdata struct ctl_path net_core_path[] = { | ||
207 | { .procname = "net", }, | ||
208 | { .procname = "core", }, | ||
209 | { }, | ||
210 | }; | ||
211 | |||
212 | static __net_init int sysctl_core_net_init(struct net *net) | 206 | static __net_init int sysctl_core_net_init(struct net *net) |
213 | { | 207 | { |
214 | struct ctl_table *tbl; | 208 | struct ctl_table *tbl; |
diff --git a/net/ipv4/netfilter.c b/net/ipv4/netfilter.c index 3cd8c586741a..ed1b36783192 100644 --- a/net/ipv4/netfilter.c +++ b/net/ipv4/netfilter.c | |||
@@ -237,13 +237,3 @@ static void ipv4_netfilter_fini(void) | |||
237 | 237 | ||
238 | module_init(ipv4_netfilter_init); | 238 | module_init(ipv4_netfilter_init); |
239 | module_exit(ipv4_netfilter_fini); | 239 | module_exit(ipv4_netfilter_fini); |
240 | |||
241 | #ifdef CONFIG_SYSCTL | ||
242 | struct ctl_path nf_net_ipv4_netfilter_sysctl_path[] = { | ||
243 | { .procname = "net", }, | ||
244 | { .procname = "ipv4", }, | ||
245 | { .procname = "netfilter", }, | ||
246 | { } | ||
247 | }; | ||
248 | EXPORT_SYMBOL_GPL(nf_net_ipv4_netfilter_sysctl_path); | ||
249 | #endif /* CONFIG_SYSCTL */ | ||
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index 56e64f7b75d0..33417f84e07f 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c | |||
@@ -768,13 +768,6 @@ static struct ctl_table ipv4_net_table[] = { | |||
768 | { } | 768 | { } |
769 | }; | 769 | }; |
770 | 770 | ||
771 | struct ctl_path net_ipv4_ctl_path[] = { | ||
772 | { .procname = "net", }, | ||
773 | { .procname = "ipv4", }, | ||
774 | { }, | ||
775 | }; | ||
776 | EXPORT_SYMBOL_GPL(net_ipv4_ctl_path); | ||
777 | |||
778 | static __net_init int ipv4_sysctl_init_net(struct net *net) | 771 | static __net_init int ipv4_sysctl_init_net(struct net *net) |
779 | { | 772 | { |
780 | struct ctl_table *table; | 773 | struct ctl_table *table; |
diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c index a52d8203a5de..e85c48bd404f 100644 --- a/net/ipv6/sysctl_net_ipv6.c +++ b/net/ipv6/sysctl_net_ipv6.c | |||
@@ -38,13 +38,6 @@ static ctl_table ipv6_rotable[] = { | |||
38 | { } | 38 | { } |
39 | }; | 39 | }; |
40 | 40 | ||
41 | struct ctl_path net_ipv6_ctl_path[] = { | ||
42 | { .procname = "net", }, | ||
43 | { .procname = "ipv6", }, | ||
44 | { }, | ||
45 | }; | ||
46 | EXPORT_SYMBOL_GPL(net_ipv6_ctl_path); | ||
47 | |||
48 | static int __net_init ipv6_sysctl_net_init(struct net *net) | 41 | static int __net_init ipv6_sysctl_net_init(struct net *net) |
49 | { | 42 | { |
50 | struct ctl_table *ipv6_table; | 43 | struct ctl_table *ipv6_table; |
diff --git a/net/netfilter/core.c b/net/netfilter/core.c index e1b7e051332e..e19f3653db23 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c | |||
@@ -290,12 +290,3 @@ void __init netfilter_init(void) | |||
290 | if (netfilter_log_init() < 0) | 290 | if (netfilter_log_init() < 0) |
291 | panic("cannot initialize nf_log"); | 291 | panic("cannot initialize nf_log"); |
292 | } | 292 | } |
293 | |||
294 | #ifdef CONFIG_SYSCTL | ||
295 | struct ctl_path nf_net_netfilter_sysctl_path[] = { | ||
296 | { .procname = "net", }, | ||
297 | { .procname = "netfilter", }, | ||
298 | { } | ||
299 | }; | ||
300 | EXPORT_SYMBOL_GPL(nf_net_netfilter_sysctl_path); | ||
301 | #endif /* CONFIG_SYSCTL */ | ||
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index a606d6b1b0e5..e3707d2bd9c7 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c | |||
@@ -1846,13 +1846,6 @@ static struct ctl_table vs_vars[] = { | |||
1846 | { } | 1846 | { } |
1847 | }; | 1847 | }; |
1848 | 1848 | ||
1849 | const struct ctl_path net_vs_ctl_path[] = { | ||
1850 | { .procname = "net", }, | ||
1851 | { .procname = "ipv4", }, | ||
1852 | { .procname = "vs", }, | ||
1853 | { } | ||
1854 | }; | ||
1855 | EXPORT_SYMBOL_GPL(net_vs_ctl_path); | ||
1856 | #endif | 1849 | #endif |
1857 | 1850 | ||
1858 | #ifdef CONFIG_PROC_FS | 1851 | #ifdef CONFIG_PROC_FS |