diff options
author | Yuanhan Liu <yuanhan.liu@linux.intel.com> | 2013-02-27 20:05:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-27 22:10:22 -0500 |
commit | cd89f46b52cd2354d3d322ea7eab193b86ba03c6 (patch) | |
tree | ef432b3d428ff5247d486184c212af60eada9b16 /kernel/utsname_sysctl.c | |
parent | df1778be1a33edffa51d094eeda87c858ded6560 (diff) |
kernel/utsname_sysctl.c: put get/get_uts() into CONFIG_PROC_SYSCTL code block
Put get/get_uts() into CONFIG_PROC_SYSCTL code block as they are used
only when CONFIG_PROC_SYSCTL is enabled.
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/utsname_sysctl.c')
-rw-r--r-- | kernel/utsname_sysctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c index 63da38c2d820..4f69f9a5e221 100644 --- a/kernel/utsname_sysctl.c +++ b/kernel/utsname_sysctl.c | |||
@@ -15,6 +15,8 @@ | |||
15 | #include <linux/sysctl.h> | 15 | #include <linux/sysctl.h> |
16 | #include <linux/wait.h> | 16 | #include <linux/wait.h> |
17 | 17 | ||
18 | #ifdef CONFIG_PROC_SYSCTL | ||
19 | |||
18 | static void *get_uts(ctl_table *table, int write) | 20 | static void *get_uts(ctl_table *table, int write) |
19 | { | 21 | { |
20 | char *which = table->data; | 22 | char *which = table->data; |
@@ -38,7 +40,6 @@ static void put_uts(ctl_table *table, int write, void *which) | |||
38 | up_write(&uts_sem); | 40 | up_write(&uts_sem); |
39 | } | 41 | } |
40 | 42 | ||
41 | #ifdef CONFIG_PROC_SYSCTL | ||
42 | /* | 43 | /* |
43 | * Special case of dostring for the UTS structure. This has locks | 44 | * Special case of dostring for the UTS structure. This has locks |
44 | * to observe. Should this be in kernel/sys.c ???? | 45 | * to observe. Should this be in kernel/sys.c ???? |