提交 b05fd35d 编写于 作者: E Eric W. Biederman

sysctl s390: Remove dead sysctl binary support

Now that sys_sysctl is a generic wrapper around /proc/sys  .ctl_name
and .strategy members of sysctl tables are dead code.  Remove them.

Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
上级 67a7e4f8
...@@ -893,35 +893,30 @@ s390dbf_procactive(ctl_table *table, int write, ...@@ -893,35 +893,30 @@ s390dbf_procactive(ctl_table *table, int write,
static struct ctl_table s390dbf_table[] = { static struct ctl_table s390dbf_table[] = {
{ {
.ctl_name = CTL_S390DBF_STOPPABLE,
.procname = "debug_stoppable", .procname = "debug_stoppable",
.data = &debug_stoppable, .data = &debug_stoppable,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = S_IRUGO | S_IWUSR, .mode = S_IRUGO | S_IWUSR,
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
.strategy = &sysctl_intvec,
}, },
{ {
.ctl_name = CTL_S390DBF_ACTIVE,
.procname = "debug_active", .procname = "debug_active",
.data = &debug_active, .data = &debug_active,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = S_IRUGO | S_IWUSR, .mode = S_IRUGO | S_IWUSR,
.proc_handler = &s390dbf_procactive, .proc_handler = &s390dbf_procactive,
.strategy = &sysctl_intvec,
}, },
{ .ctl_name = 0 } { }
}; };
static struct ctl_table s390dbf_dir_table[] = { static struct ctl_table s390dbf_dir_table[] = {
{ {
.ctl_name = CTL_S390DBF,
.procname = "s390dbf", .procname = "s390dbf",
.maxlen = 0, .maxlen = 0,
.mode = S_IRUGO | S_IXUGO, .mode = S_IRUGO | S_IXUGO,
.child = s390dbf_table, .child = s390dbf_table,
}, },
{ .ctl_name = 0 } { }
}; };
static struct ctl_table_header *s390dbf_sysctl_header; static struct ctl_table_header *s390dbf_sysctl_header;
......
...@@ -355,18 +355,17 @@ static struct ctl_table cmm_table[] = { ...@@ -355,18 +355,17 @@ static struct ctl_table cmm_table[] = {
.mode = 0644, .mode = 0644,
.proc_handler = &cmm_timeout_handler, .proc_handler = &cmm_timeout_handler,
}, },
{ .ctl_name = 0 } { }
}; };
static struct ctl_table cmm_dir_table[] = { static struct ctl_table cmm_dir_table[] = {
{ {
.ctl_name = CTL_VM,
.procname = "vm", .procname = "vm",
.maxlen = 0, .maxlen = 0,
.mode = 0555, .mode = 0555,
.child = cmm_table, .child = cmm_table,
}, },
{ .ctl_name = 0 } { }
}; };
#endif #endif
......
...@@ -101,18 +101,17 @@ static struct ctl_table callhome_table[] = { ...@@ -101,18 +101,17 @@ static struct ctl_table callhome_table[] = {
.mode = 0644, .mode = 0644,
.proc_handler = proc_handler_callhome, .proc_handler = proc_handler_callhome,
}, },
{ .ctl_name = 0 } {}
}; };
static struct ctl_table kern_dir_table[] = { static struct ctl_table kern_dir_table[] = {
{ {
.ctl_name = CTL_KERN,
.procname = "kernel", .procname = "kernel",
.maxlen = 0, .maxlen = 0,
.mode = 0555, .mode = 0555,
.child = callhome_table, .child = callhome_table,
}, },
{ .ctl_name = 0 } {}
}; };
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册