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>
This commit is contained in:
parent
df1778be1a
commit
cd89f46b52
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,8 @@
|
||||||
#include <linux/sysctl.h>
|
#include <linux/sysctl.h>
|
||||||
#include <linux/wait.h>
|
#include <linux/wait.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_PROC_SYSCTL
|
||||||
|
|
||||||
static void *get_uts(ctl_table *table, int write)
|
static void *get_uts(ctl_table *table, int write)
|
||||||
{
|
{
|
||||||
char *which = table->data;
|
char *which = table->data;
|
||||||
|
@ -38,7 +40,6 @@ static void put_uts(ctl_table *table, int write, void *which)
|
||||||
up_write(&uts_sem);
|
up_write(&uts_sem);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PROC_SYSCTL
|
|
||||||
/*
|
/*
|
||||||
* Special case of dostring for the UTS structure. This has locks
|
* Special case of dostring for the UTS structure. This has locks
|
||||||
* to observe. Should this be in kernel/sys.c ????
|
* to observe. Should this be in kernel/sys.c ????
|
||||||
|
|
Loading…
Reference in a new issue