aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2007-10-18 06:05:29 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-18 17:37:23 -0400
commit0d135a4a8c77f248afd908bc3cf5bd833062589d (patch)
tree438da61d9b66057d330827afb479c25a2b5425f6 /kernel/sysctl.c
parent49641b58a7bb90e18b0b55e1af3e9039b24fba61 (diff)
sysctl: remove the binary interface for aio-nr, aio-max-nr, acpi_video_flags
aio-nr, aio-max-nr, acpi_video_flags are unsigned long values which sysctl does not handle properly with a 64bit kernel and a 32bit user space. Since no one is likely to be using the binary sysctl values and the ascii interface still works, this patch just removes support for the binary sysctl interface from the kernel. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Cc: Alexey Dobriyan <adobriyan@sw.ru> Cc: Benjamin LaHaise <bcrl@kvack.org> Cc: Zach Brown <zach.brown@oracle.com> Cc: Badari Pulavarty <pbadari@us.ibm.com> Cc: Len Brown <lenb@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 8e8f3f4cf14b..bed6cdb3e47a 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -703,7 +703,6 @@ static struct ctl_table kern_table[] = {
703#endif 703#endif
704#if defined(CONFIG_ACPI_SLEEP) && defined(CONFIG_X86) 704#if defined(CONFIG_ACPI_SLEEP) && defined(CONFIG_X86)
705 { 705 {
706 .ctl_name = KERN_ACPI_VIDEO_FLAGS,
707 .procname = "acpi_video_flags", 706 .procname = "acpi_video_flags",
708 .data = &acpi_realmode_flags, 707 .data = &acpi_realmode_flags,
709 .maxlen = sizeof (unsigned long), 708 .maxlen = sizeof (unsigned long),
@@ -1185,7 +1184,6 @@ static struct ctl_table fs_table[] = {
1185 .extra2 = &two, 1184 .extra2 = &two,
1186 }, 1185 },
1187 { 1186 {
1188 .ctl_name = FS_AIO_NR,
1189 .procname = "aio-nr", 1187 .procname = "aio-nr",
1190 .data = &aio_nr, 1188 .data = &aio_nr,
1191 .maxlen = sizeof(aio_nr), 1189 .maxlen = sizeof(aio_nr),
@@ -1193,7 +1191,6 @@ static struct ctl_table fs_table[] = {
1193 .proc_handler = &proc_doulongvec_minmax, 1191 .proc_handler = &proc_doulongvec_minmax,
1194 }, 1192 },
1195 { 1193 {
1196 .ctl_name = FS_AIO_MAX_NR,
1197 .procname = "aio-max-nr", 1194 .procname = "aio-max-nr",
1198 .data = &aio_max_nr, 1195 .data = &aio_max_nr,
1199 .maxlen = sizeof(aio_max_nr), 1196 .maxlen = sizeof(aio_max_nr),