diff options
-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) |