Skip to content

Commit 0891368

Browse files
xemuldavem330
authored andcommitted
[NET]: Remove the empty net_table
I have removed all the entries from this table (core_table, ipv4_table and tr_table), so now we can safely drop it. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 36f0beb commit 0891368

3 files changed

Lines changed: 0 additions & 13 deletions

File tree

‎include/linux/net.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ static const struct proto_ops name##_ops = { \
337337

338338
#ifdef CONFIG_SYSCTL
339339
#include <linux/sysctl.h>
340-
extern ctl_table net_table[];
341340
extern int net_msg_cost;
342341
extern int net_msg_burst;
343342
#endif

‎kernel/sysctl.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,6 @@ static struct ctl_table root_table[] = {
200200
.mode = 0555,
201201
.child = vm_table,
202202
},
203-
#ifdef CONFIG_NET
204-
{
205-
.ctl_name = CTL_NET,
206-
.procname = "net",
207-
.mode = 0555,
208-
.child = net_table,
209-
},
210-
#endif
211203
{
212204
.ctl_name = CTL_FS,
213205
.procname = "fs",

‎net/sysctl_net.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@
3030
#include <linux/if_tr.h>
3131
#endif
3232

33-
struct ctl_table net_table[] = {
34-
{ 0 },
35-
};
36-
3733
static struct list_head *
3834
net_ctl_header_lookup(struct ctl_table_root *root, struct nsproxy *namespaces)
3935
{

0 commit comments

Comments
 (0)