diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-04-29 04:02:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:23 -0400 |
commit | 2c4c7155f25192da3511a6c911db4d08102d36c4 (patch) | |
tree | ed38f2fec221203f4baf078fb38454e14d6e33f9 /include/linux/sysctl.h | |
parent | 7708bfb1c855f2a076ef71cc21647deea022ebe7 (diff) |
sysctl: clean from unneeded extern and forward declarations
The do_sysctl_strategy isn't used outside kernel/sysctl.c, so this can be
static and without a prototype in header.
Besides, move this one and parse_table() above their callers and drop the
forward declarations of the latter call.
One more "besides" - fix two checkpatch warnings: space before a ( and an
extra space at the end of a line.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Alexey Dobriyan <adobriyan@sw.ru>
Cc: Denis V. Lunev <den@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/sysctl.h')
-rw-r--r-- | include/linux/sysctl.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 5432b34a1e51..39eafd8f97a3 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
@@ -981,11 +981,6 @@ extern int do_sysctl (int __user *name, int nlen, | |||
981 | void __user *oldval, size_t __user *oldlenp, | 981 | void __user *oldval, size_t __user *oldlenp, |
982 | void __user *newval, size_t newlen); | 982 | void __user *newval, size_t newlen); |
983 | 983 | ||
984 | extern int do_sysctl_strategy (struct ctl_table *table, | ||
985 | int __user *name, int nlen, | ||
986 | void __user *oldval, size_t __user *oldlenp, | ||
987 | void __user *newval, size_t newlen); | ||
988 | |||
989 | extern ctl_handler sysctl_data; | 984 | extern ctl_handler sysctl_data; |
990 | extern ctl_handler sysctl_string; | 985 | extern ctl_handler sysctl_string; |
991 | extern ctl_handler sysctl_intvec; | 986 | extern ctl_handler sysctl_intvec; |