Skip to content

Commit

Permalink
net: Delete all remaining instances of ctl_path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ebiederm authored and davem330 committed Apr 21, 2012
1 parent ec8f23c commit a5347fe
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 58 deletions.
6 changes: 0 additions & 6 deletions include/linux/netfilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions include/net/ip.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions include/net/ip_vs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion include/net/ipv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
({ \
Expand Down
6 changes: 0 additions & 6 deletions net/core/sysctl_net_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 0 additions & 10 deletions net/ipv4/netfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
7 changes: 0 additions & 7 deletions net/ipv4/sysctl_net_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 0 additions & 7 deletions net/ipv6/sysctl_net_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 0 additions & 9 deletions net/netfilter/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
7 changes: 0 additions & 7 deletions net/netfilter/ipvs/ip_vs_ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5347fe

Please sign in to comment.