net: Delete all remaining instances of ctl_path
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 19 Apr 2012 13:45:29 +0000 (13:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 01:22:30 +0000 (21:22 -0400)
We don't use struct ctl_path anymore so delete the exported constants.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter.h
include/net/ip.h
include/net/ip_vs.h
include/net/ipv6.h
net/core/sysctl_net_core.c
net/ipv4/netfilter.c
net/ipv4/sysctl_net_ipv4.c
net/ipv6/sysctl_net_ipv6.c
net/netfilter/core.c
net/netfilter/ipvs/ip_vs_ctl.c

index 29734be334c11b5e5e116483efc7da470d1ca00c..ff9c84c29b28a5df3673e5618fc9df76bc0adb3e 100644 (file)
@@ -154,12 +154,6 @@ void nf_unregister_hooks(struct nf_hook_ops *reg, unsigned int n);
 int nf_register_sockopt(struct nf_sockopt_ops *reg);
 void nf_unregister_sockopt(struct nf_sockopt_ops *reg);
 
-#ifdef CONFIG_SYSCTL
-/* Sysctl registration */
-extern struct ctl_path nf_net_netfilter_sysctl_path[];
-extern struct ctl_path nf_net_ipv4_netfilter_sysctl_path[];
-#endif /* CONFIG_SYSCTL */
-
 extern struct list_head nf_hooks[NFPROTO_NUMPROTO][NF_MAX_HOOKS];
 
 #if defined(CONFIG_JUMP_LABEL)
index b53d65f24f7be8497b60475952d5a66c579aee68..94ddb69cc0f3c816bf66d52c155650a41a3481bf 100644 (file)
@@ -222,9 +222,6 @@ static inline int inet_is_reserved_local_port(int port)
 
 extern int sysctl_ip_nonlocal_bind;
 
-extern struct ctl_path net_core_path[];
-extern struct ctl_path net_ipv4_ctl_path[];
-
 /* From inetpeer.c */
 extern int inet_peer_threshold;
 extern int inet_peer_minttl;
index a903a828bcefea87e5e40f61c0252f37cf5249a0..990216ded6b3a24f9298b8f30e748413de2628fc 100644 (file)
@@ -10,7 +10,6 @@
 
 #include <asm/types.h>                  /* for __uXX types */
 
-#include <linux/sysctl.h>               /* for ctl_path */
 #include <linux/list.h>                 /* for struct list_head */
 #include <linux/spinlock.h>             /* for struct rwlock_t */
 #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);
  *      IPVS control data and functions (from ip_vs_ctl.c)
  */
 extern struct ip_vs_stats ip_vs_stats;
-extern const struct ctl_path net_vs_ctl_path[];
 extern int sysctl_ip_vs_sync_ver;
 
 extern void ip_vs_sync_switch_mode(struct net *net, int mode);
index e1a85adbeee3643dfd862403639debc377969ec7..4332e9aad853a77a047634dbbf38421db1cd6c84 100644 (file)
@@ -113,7 +113,6 @@ struct frag_hdr {
 
 /* sysctls */
 extern int sysctl_mld_max_msf;
-extern struct ctl_path net_ipv6_ctl_path[];
 
 #define _DEVINC(net, statname, modifier, idev, field)                  \
 ({                                                                     \
index 64924e345a9b07cbdc2dc25dbe5b6dfd09596a0a..a7c36845b123c09f727931cfe3ef3e4ad0365432 100644 (file)
@@ -203,12 +203,6 @@ static struct ctl_table netns_core_table[] = {
        { }
 };
 
-__net_initdata struct ctl_path net_core_path[] = {
-       { .procname = "net", },
-       { .procname = "core", },
-       { },
-};
-
 static __net_init int sysctl_core_net_init(struct net *net)
 {
        struct ctl_table *tbl;
index 3cd8c586741ab3209d34cecf0f1bf28b07dbbe87..ed1b3678319223eaa7a4d0b2df3a9aae21deeb8a 100644 (file)
@@ -237,13 +237,3 @@ static void ipv4_netfilter_fini(void)
 
 module_init(ipv4_netfilter_init);
 module_exit(ipv4_netfilter_fini);
-
-#ifdef CONFIG_SYSCTL
-struct ctl_path nf_net_ipv4_netfilter_sysctl_path[] = {
-       { .procname = "net", },
-       { .procname = "ipv4", },
-       { .procname = "netfilter", },
-       { }
-};
-EXPORT_SYMBOL_GPL(nf_net_ipv4_netfilter_sysctl_path);
-#endif /* CONFIG_SYSCTL */
index 56e64f7b75d08b1fbb47c27990f27a0fb4835a0e..33417f84e07f014e1b33ac50a4e4052353b1b929 100644 (file)
@@ -768,13 +768,6 @@ static struct ctl_table ipv4_net_table[] = {
        { }
 };
 
-struct ctl_path net_ipv4_ctl_path[] = {
-       { .procname = "net", },
-       { .procname = "ipv4", },
-       { },
-};
-EXPORT_SYMBOL_GPL(net_ipv4_ctl_path);
-
 static __net_init int ipv4_sysctl_init_net(struct net *net)
 {
        struct ctl_table *table;
index a52d8203a5de14c321f5d8485cf7b758e130c96f..e85c48bd404f4036b0c4e7db1e29bd6a92192f75 100644 (file)
@@ -38,13 +38,6 @@ static ctl_table ipv6_rotable[] = {
        { }
 };
 
-struct ctl_path net_ipv6_ctl_path[] = {
-       { .procname = "net", },
-       { .procname = "ipv6", },
-       { },
-};
-EXPORT_SYMBOL_GPL(net_ipv6_ctl_path);
-
 static int __net_init ipv6_sysctl_net_init(struct net *net)
 {
        struct ctl_table *ipv6_table;
index e1b7e051332edb58b4752fb3ca0f6b447c50239d..e19f3653db232611c5086b12a40b3ccb3444512b 100644 (file)
@@ -290,12 +290,3 @@ void __init netfilter_init(void)
        if (netfilter_log_init() < 0)
                panic("cannot initialize nf_log");
 }
-
-#ifdef CONFIG_SYSCTL
-struct ctl_path nf_net_netfilter_sysctl_path[] = {
-       { .procname = "net", },
-       { .procname = "netfilter", },
-       { }
-};
-EXPORT_SYMBOL_GPL(nf_net_netfilter_sysctl_path);
-#endif /* CONFIG_SYSCTL */
index a606d6b1b0e5c2e9a7f4ee9ee19fbdb9ef2347c1..e3707d2bd9c74cd6baf5ec4f12ce3f3ba84532d3 100644 (file)
@@ -1846,13 +1846,6 @@ static struct ctl_table vs_vars[] = {
        { }
 };
 
-const struct ctl_path net_vs_ctl_path[] = {
-       { .procname = "net", },
-       { .procname = "ipv4", },
-       { .procname = "vs", },
-       { }
-};
-EXPORT_SYMBOL_GPL(net_vs_ctl_path);
 #endif
 
 #ifdef CONFIG_PROC_FS