Skip to content

Commit a5347fe

Browse files
ebiedermdavem330
authored andcommitted
net: Delete all remaining instances of ctl_path
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>
1 parent ec8f23c commit a5347fe

10 files changed

Lines changed: 0 additions & 58 deletions

File tree

‎include/linux/netfilter.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,6 @@ void nf_unregister_hooks(struct nf_hook_ops *reg, unsigned int n);
154154
int nf_register_sockopt(struct nf_sockopt_ops *reg);
155155
void nf_unregister_sockopt(struct nf_sockopt_ops *reg);
156156

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-
163157
extern struct list_head nf_hooks[NFPROTO_NUMPROTO][NF_MAX_HOOKS];
164158

165159
#if defined(CONFIG_JUMP_LABEL)

‎include/net/ip.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,6 @@ static inline int inet_is_reserved_local_port(int port)
222222

223223
extern int sysctl_ip_nonlocal_bind;
224224

225-
extern struct ctl_path net_core_path[];
226-
extern struct ctl_path net_ipv4_ctl_path[];
227-
228225
/* From inetpeer.c */
229226
extern int inet_peer_threshold;
230227
extern int inet_peer_minttl;

‎include/net/ip_vs.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
#include <asm/types.h> /* for __uXX types */
1212

13-
#include <linux/sysctl.h> /* for ctl_path */
1413
#include <linux/list.h> /* for struct list_head */
1514
#include <linux/spinlock.h> /* for struct rwlock_t */
1615
#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);
11841183
* IPVS control data and functions (from ip_vs_ctl.c)
11851184
*/
11861185
extern struct ip_vs_stats ip_vs_stats;
1187-
extern const struct ctl_path net_vs_ctl_path[];
11881186
extern int sysctl_ip_vs_sync_ver;
11891187

11901188
extern void ip_vs_sync_switch_mode(struct net *net, int mode);

‎include/net/ipv6.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ struct frag_hdr {
113113

114114
/* sysctls */
115115
extern int sysctl_mld_max_msf;
116-
extern struct ctl_path net_ipv6_ctl_path[];
117116

118117
#define _DEVINC(net, statname, modifier, idev, field) \
119118
({ \

‎net/core/sysctl_net_core.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,6 @@ static struct ctl_table netns_core_table[] = {
203203
{ }
204204
};
205205

206-
__net_initdata struct ctl_path net_core_path[] = {
207-
{ .procname = "net", },
208-
{ .procname = "core", },
209-
{ },
210-
};
211-
212206
static __net_init int sysctl_core_net_init(struct net *net)
213207
{
214208
struct ctl_table *tbl;

‎net/ipv4/netfilter.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,3 @@ static void ipv4_netfilter_fini(void)
237237

238238
module_init(ipv4_netfilter_init);
239239
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 */

‎net/ipv4/sysctl_net_ipv4.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -768,13 +768,6 @@ static struct ctl_table ipv4_net_table[] = {
768768
{ }
769769
};
770770

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-
778771
static __net_init int ipv4_sysctl_init_net(struct net *net)
779772
{
780773
struct ctl_table *table;

‎net/ipv6/sysctl_net_ipv6.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ static ctl_table ipv6_rotable[] = {
3838
{ }
3939
};
4040

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-
4841
static int __net_init ipv6_sysctl_net_init(struct net *net)
4942
{
5043
struct ctl_table *ipv6_table;

‎net/netfilter/core.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,3 @@ void __init netfilter_init(void)
290290
if (netfilter_log_init() < 0)
291291
panic("cannot initialize nf_log");
292292
}
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 */

‎net/netfilter/ipvs/ip_vs_ctl.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,13 +1846,6 @@ static struct ctl_table vs_vars[] = {
18461846
{ }
18471847
};
18481848

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);
18561849
#endif
18571850

18581851
#ifdef CONFIG_PROC_FS

0 commit comments

Comments
 (0)