diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index c05a2b7125e1..32b48e8ee36e 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -50,6 +50,9 @@ | |||
50 | #include <asm/uaccess.h> | 50 | #include <asm/uaccess.h> |
51 | #include <asm/processor.h> | 51 | #include <asm/processor.h> |
52 | 52 | ||
53 | extern int proc_nr_files(ctl_table *table, int write, struct file *filp, | ||
54 | void __user *buffer, size_t *lenp, loff_t *ppos); | ||
55 | |||
53 | #if defined(CONFIG_SYSCTL) | 56 | #if defined(CONFIG_SYSCTL) |
54 | 57 | ||
55 | /* External variables not in a header file. */ | 58 | /* External variables not in a header file. */ |
@@ -124,6 +127,10 @@ extern int sysctl_hz_timer; | |||
124 | extern int acct_parm[]; | 127 | extern int acct_parm[]; |
125 | #endif | 128 | #endif |
126 | 129 | ||
130 | #ifdef CONFIG_IA64 | ||
131 | extern int no_unaligned_warning; | ||
132 | #endif | ||
133 | |||
127 | static int parse_table(int __user *, int, void __user *, size_t __user *, void __user *, size_t, | 134 | static int parse_table(int __user *, int, void __user *, size_t __user *, void __user *, size_t, |
128 | ctl_table *, void **); | 135 | ctl_table *, void **); |
129 | static int proc_doutsstring(ctl_table *table, int write, struct file *filp, | 136 | static int proc_doutsstring(ctl_table *table, int write, struct file *filp, |
@@ -663,6 +670,16 @@ static ctl_table kern_table[] = { | |||
663 | .data = &acpi_video_flags, | 670 | .data = &acpi_video_flags, |
664 | .maxlen = sizeof (unsigned long), | 671 | .maxlen = sizeof (unsigned long), |
665 | .mode = 0644, | 672 | .mode = 0644, |
673 | .proc_handler = &proc_doulongvec_minmax, | ||
674 | }, | ||
675 | #endif | ||
676 | #ifdef CONFIG_IA64 | ||
677 | { | ||
678 | .ctl_name = KERN_IA64_UNALIGNED, | ||
679 | .procname = "ignore-unaligned-usertrap", | ||
680 | .data = &no_unaligned_warning, | ||
681 | .maxlen = sizeof (int), | ||
682 | .mode = 0644, | ||
666 | .proc_handler = &proc_dointvec, | 683 | .proc_handler = &proc_dointvec, |
667 | }, | 684 | }, |
668 | #endif | 685 | #endif |
@@ -929,7 +946,7 @@ static ctl_table fs_table[] = { | |||
929 | .data = &files_stat, | 946 | .data = &files_stat, |
930 | .maxlen = 3*sizeof(int), | 947 | .maxlen = 3*sizeof(int), |
931 | .mode = 0444, | 948 | .mode = 0444, |
932 | .proc_handler = &proc_dointvec, | 949 | .proc_handler = &proc_nr_files, |
933 | }, | 950 | }, |
934 | { | 951 | { |
935 | .ctl_name = FS_MAXFILE, | 952 | .ctl_name = FS_MAXFILE, |