diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2007-02-14 03:33:51 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 11:09:57 -0500 |
commit | c37ce0324962010e768f2570e2603553263ff219 (patch) | |
tree | cf645e9b3f5bc25eb2fe7cee41dfb9fd86e71ef1 | |
parent | 7a44d37d8c633cfee145c7276c0777defd964858 (diff) |
[PATCH] sysctl: C99 convert ctl_tables in arch/x86_64/mm/init.c
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/x86_64/mm/init.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index 65aa66c35295..a5c12ea57683 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c | |||
@@ -711,15 +711,25 @@ int kern_addr_valid(unsigned long addr) | |||
711 | extern int exception_trace, page_fault_trace; | 711 | extern int exception_trace, page_fault_trace; |
712 | 712 | ||
713 | static ctl_table debug_table2[] = { | 713 | static ctl_table debug_table2[] = { |
714 | { 99, "exception-trace", &exception_trace, sizeof(int), 0644, NULL, | 714 | { |
715 | proc_dointvec }, | 715 | .ctl_name = 99, |
716 | { 0, } | 716 | .procname = "exception-trace", |
717 | .data = &exception_trace, | ||
718 | .maxlen = sizeof(int), | ||
719 | .mode = 0644, | ||
720 | .proc_handler = proc_dointvec | ||
721 | }, | ||
722 | {} | ||
717 | }; | 723 | }; |
718 | 724 | ||
719 | static ctl_table debug_root_table2[] = { | 725 | static ctl_table debug_root_table2[] = { |
720 | { .ctl_name = CTL_DEBUG, .procname = "debug", .mode = 0555, | 726 | { |
721 | .child = debug_table2 }, | 727 | .ctl_name = CTL_DEBUG, |
722 | { 0 }, | 728 | .procname = "debug", |
729 | .mode = 0555, | ||
730 | .child = debug_table2 | ||
731 | }, | ||
732 | {} | ||
723 | }; | 733 | }; |
724 | 734 | ||
725 | static __init int x8664_sysctl_init(void) | 735 | static __init int x8664_sysctl_init(void) |