aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/netfilter.h6
-rw-r--r--include/net/ip.h3
-rw-r--r--include/net/ip_vs.h2
-rw-r--r--include/net/ipv6.h1
-rw-r--r--net/core/sysctl_net_core.c6
-rw-r--r--net/ipv4/netfilter.c10
-rw-r--r--net/ipv4/sysctl_net_ipv4.c7
-rw-r--r--net/ipv6/sysctl_net_ipv6.c7
-rw-r--r--net/netfilter/core.c9
-rw-r--r--net/netfilter/ipvs/ip_vs_ctl.c7
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);
154int nf_register_sockopt(struct nf_sockopt_ops *reg); 154int nf_register_sockopt(struct nf_sockopt_ops *reg);
155void nf_unregister_sockopt(struct nf_sockopt_ops *reg); 155void nf_unregister_sockopt(struct nf_sockopt_ops *reg);
156 156
157#ifdef CONFIG_SYSCTL
158/* Sysctl registration */
159extern struct ctl_path nf_net_netfilter_sysctl_path[];
160extern struct ctl_path nf_net_ipv4_netfilter_sysctl_path[];
161#endif /* CONFIG_SYSCTL */
162
163extern struct list_head nf_hooks[NFPROTO_NUMPROTO][NF_MAX_HOOKS]; 157extern 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
223extern int sysctl_ip_nonlocal_bind; 223extern int sysctl_ip_nonlocal_bind;
224 224
225extern struct ctl_path net_core_path[];
226extern struct ctl_path net_ipv4_ctl_path[];
227
228/* From inetpeer.c */ 225/* From inetpeer.c */
229extern int inet_peer_threshold; 226extern int inet_peer_threshold;
230extern int inet_peer_minttl; 227extern 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 */
1186extern struct ip_vs_stats ip_vs_stats; 1185extern struct ip_vs_stats ip_vs_stats;
1187extern const struct ctl_path net_vs_ctl_path[];
1188extern int sysctl_ip_vs_sync_ver; 1186extern int sysctl_ip_vs_sync_ver;
1189 1187
1190extern void ip_vs_sync_switch_mode(struct net *net, int mode); 1188extern 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 */
115extern int sysctl_mld_max_msf; 115extern int sysctl_mld_max_msf;
116extern 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
212static __net_init int sysctl_core_net_init(struct net *net) 206static __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
238module_init(ipv4_netfilter_init); 238module_init(ipv4_netfilter_init);
239module_exit(ipv4_netfilter_fini); 239module_exit(ipv4_netfilter_fini);
240
241#ifdef CONFIG_SYSCTL
242struct ctl_path nf_net_ipv4_netfilter_sysctl_path[] = {
243 { .procname = "net", },
244 { .procname = "ipv4", },
245 { .procname = "netfilter", },
246 { }
247};
248EXPORT_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
771struct ctl_path net_ipv4_ctl_path[] = {
772 { .procname = "net", },
773 { .procname = "ipv4", },
774 { },
775};
776EXPORT_SYMBOL_GPL(net_ipv4_ctl_path);
777
778static __net_init int ipv4_sysctl_init_net(struct net *net) 771static __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
41struct ctl_path net_ipv6_ctl_path[] = {
42 { .procname = "net", },
43 { .procname = "ipv6", },
44 { },
45};
46EXPORT_SYMBOL_GPL(net_ipv6_ctl_path);
47
48static int __net_init ipv6_sysctl_net_init(struct net *net) 41static 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
295struct ctl_path nf_net_netfilter_sysctl_path[] = {
296 { .procname = "net", },
297 { .procname = "netfilter", },
298 { }
299};
300EXPORT_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
1849const struct ctl_path net_vs_ctl_path[] = {
1850 { .procname = "net", },
1851 { .procname = "ipv4", },
1852 { .procname = "vs", },
1853 { }
1854};
1855EXPORT_SYMBOL_GPL(net_vs_ctl_path);
1856#endif 1849#endif
1857 1850
1858#ifdef CONFIG_PROC_FS 1851#ifdef CONFIG_PROC_FS