diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-06 06:13:27 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-24 19:37:54 -0500 |
commit | 0ce8974d504913a0f0ae2d97b20a5ac665431a41 (patch) | |
tree | 50edf9b96066a3ca66143da742980dc04d72fb05 /kernel/sysctl.c | |
parent | 36885d7b1121c779e4060d45472fe53a5b21e09f (diff) |
sysctl: Consolidate !CONFIG_SYSCTL handling
- In sysctl.h move functions only available if CONFIG_SYSCL
is defined inside of #ifdef CONFIG_SYSCTL
- Move the stub function definitions for !CONFIG_SYSCTL
into sysctl.h and make them static inlines.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index f487f257e05e..d5bbddd0de24 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -2017,32 +2017,6 @@ void setup_sysctl_set(struct ctl_table_set *p, | |||
2017 | p->is_seen = is_seen; | 2017 | p->is_seen = is_seen; |
2018 | } | 2018 | } |
2019 | 2019 | ||
2020 | #else /* !CONFIG_SYSCTL */ | ||
2021 | struct ctl_table_header *register_sysctl_table(struct ctl_table * table) | ||
2022 | { | ||
2023 | return NULL; | ||
2024 | } | ||
2025 | |||
2026 | struct ctl_table_header *register_sysctl_paths(const struct ctl_path *path, | ||
2027 | struct ctl_table *table) | ||
2028 | { | ||
2029 | return NULL; | ||
2030 | } | ||
2031 | |||
2032 | void unregister_sysctl_table(struct ctl_table_header * table) | ||
2033 | { | ||
2034 | } | ||
2035 | |||
2036 | void setup_sysctl_set(struct ctl_table_set *p, | ||
2037 | struct ctl_table_set *parent, | ||
2038 | int (*is_seen)(struct ctl_table_set *)) | ||
2039 | { | ||
2040 | } | ||
2041 | |||
2042 | void sysctl_head_put(struct ctl_table_header *head) | ||
2043 | { | ||
2044 | } | ||
2045 | |||
2046 | #endif /* CONFIG_SYSCTL */ | 2020 | #endif /* CONFIG_SYSCTL */ |
2047 | 2021 | ||
2048 | /* | 2022 | /* |