diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2007-02-14 03:33:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 11:09:57 -0500 |
commit | e3c6449dcdfa023ca45b7ef1f7dce102f34f25ad (patch) | |
tree | 32f8486733a3bd59174d3d14d942bbb51511b012 | |
parent | ded2e9bdfc5ac09f29b9f73fc1b75b1080edef90 (diff) |
[PATCH] sysctl: C99 convert arch/sh64/kernel/traps.c and remove ABI breakage
While doing the C99 conversion I notices that the top level sh64 directory was
using the binary number for CTL_KERN. That is a no-no so I removed the
support for the sysctl binary interface only leaving sysctl /proc support.
At least the sysctl tables were placed at the end of the list so user space
did not see this mistake.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/sh64/kernel/traps.c | 49 |
1 files changed, 38 insertions, 11 deletions
diff --git a/arch/sh64/kernel/traps.c b/arch/sh64/kernel/traps.c index 224b7f5b9224..02cca742cf03 100644 --- a/arch/sh64/kernel/traps.c +++ b/arch/sh64/kernel/traps.c | |||
@@ -910,25 +910,52 @@ static int misaligned_fixup(struct pt_regs *regs) | |||
910 | } | 910 | } |
911 | 911 | ||
912 | static ctl_table unaligned_table[] = { | 912 | static ctl_table unaligned_table[] = { |
913 | {1, "kernel_reports", &kernel_mode_unaligned_fixup_count, | 913 | { |
914 | sizeof(int), 0644, NULL, &proc_dointvec}, | 914 | .ctl_name = CTL_UNNUMBERED, |
915 | .procname = "kernel_reports", | ||
916 | .data = &kernel_mode_unaligned_fixup_count, | ||
917 | .maxlen = sizeof(int), | ||
918 | .mode = 0644, | ||
919 | .proc_handler = &proc_dointvec | ||
920 | }, | ||
915 | #if defined(CONFIG_SH64_USER_MISALIGNED_FIXUP) | 921 | #if defined(CONFIG_SH64_USER_MISALIGNED_FIXUP) |
916 | {2, "user_reports", &user_mode_unaligned_fixup_count, | 922 | { |
917 | sizeof(int), 0644, NULL, &proc_dointvec}, | 923 | .ctl_name = CTL_UNNUMBERED, |
918 | {3, "user_enable", &user_mode_unaligned_fixup_enable, | 924 | .procname = "user_reports", |
919 | sizeof(int), 0644, NULL, &proc_dointvec}, | 925 | .data = &user_mode_unaligned_fixup_count, |
926 | .maxlen = sizeof(int), | ||
927 | .mode = 0644, | ||
928 | .proc_handler = &proc_dointvec | ||
929 | }, | ||
930 | { | ||
931 | .ctl_name = CTL_UNNUMBERED, | ||
932 | .procname = "user_enable", | ||
933 | .data = &user_mode_unaligned_fixup_enable, | ||
934 | .maxlen = sizeof(int), | ||
935 | .mode = 0644, | ||
936 | .proc_handler = &proc_dointvec}, | ||
920 | #endif | 937 | #endif |
921 | {0} | 938 | {} |
922 | }; | 939 | }; |
923 | 940 | ||
924 | static ctl_table unaligned_root[] = { | 941 | static ctl_table unaligned_root[] = { |
925 | {1, "unaligned_fixup", NULL, 0, 0555, unaligned_table}, | 942 | { |
926 | {0} | 943 | .ctl_name = CTL_UNNUMBERED, |
944 | .procname = "unaligned_fixup", | ||
945 | .mode = 0555, | ||
946 | unaligned_table | ||
947 | }, | ||
948 | {} | ||
927 | }; | 949 | }; |
928 | 950 | ||
929 | static ctl_table sh64_root[] = { | 951 | static ctl_table sh64_root[] = { |
930 | {1, "sh64", NULL, 0, 0555, unaligned_root}, | 952 | { |
931 | {0} | 953 | .ctl_name = CTL_UNNUMBERED, |
954 | .procname = "sh64", | ||
955 | .mode = 0555, | ||
956 | .child = unaligned_root | ||
957 | }, | ||
958 | {} | ||
932 | }; | 959 | }; |
933 | static struct ctl_table_header *sysctl_header; | 960 | static struct ctl_table_header *sysctl_header; |
934 | static int __init init_sysctl(void) | 961 | static int __init init_sysctl(void) |