Commit c37ce032 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Linus Torvalds

[PATCH] sysctl: C99 convert ctl_tables in arch/x86_64/mm/init.c

Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
Acked-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7a44d37d
...@@ -711,15 +711,25 @@ int kern_addr_valid(unsigned long addr) ...@@ -711,15 +711,25 @@ int kern_addr_valid(unsigned long addr)
extern int exception_trace, page_fault_trace; extern int exception_trace, page_fault_trace;
static ctl_table debug_table2[] = { static ctl_table debug_table2[] = {
{ 99, "exception-trace", &exception_trace, sizeof(int), 0644, NULL, {
proc_dointvec }, .ctl_name = 99,
{ 0, } .procname = "exception-trace",
.data = &exception_trace,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = proc_dointvec
},
{}
}; };
static ctl_table debug_root_table2[] = { static ctl_table debug_root_table2[] = {
{ .ctl_name = CTL_DEBUG, .procname = "debug", .mode = 0555, {
.child = debug_table2 }, .ctl_name = CTL_DEBUG,
{ 0 }, .procname = "debug",
.mode = 0555,
.child = debug_table2
},
{}
}; };
static __init int x8664_sysctl_init(void) static __init int x8664_sysctl_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment