From: Yuanhan Liu <yuanhan.liu@linux.intel.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org, Yuanhan Liu <yuanhan.liu@linux.intel.com>
Subject: [PATCH 2/3] sysctl: put get/get_uts() into CONFIG_PROC_SYSCTL code block
Date: Thu, 31 Jan 2013 17:28:31 +0800 [thread overview]
Message-ID: <1359624512-23469-2-git-send-email-yuanhan.liu@linux.intel.com> (raw)
In-Reply-To: <1359624512-23469-1-git-send-email-yuanhan.liu@linux.intel.com>
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>
---
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 63da38c..4f69f9a 100644
--- a/kernel/utsname_sysctl.c
+++ b/kernel/utsname_sysctl.c
@@ -15,6 +15,8 @@
#include <linux/sysctl.h>
#include <linux/wait.h>
+#ifdef CONFIG_PROC_SYSCTL
+
static void *get_uts(ctl_table *table, int write)
{
char *which = table->data;
@@ -38,7 +40,6 @@ static void put_uts(ctl_table *table, int write, void *which)
up_write(&uts_sem);
}
-#ifdef CONFIG_PROC_SYSCTL
/*
* Special case of dostring for the UTS structure. This has locks
* to observe. Should this be in kernel/sys.c ????
--
1.7.7.6
next prev parent reply other threads:[~2013-01-31 9:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-31 9:28 [PATCH 1/3] namespaces: utsname: fix wrong comment about clone_uts_ns() Yuanhan Liu
2013-01-31 9:28 ` Yuanhan Liu [this message]
2013-01-31 9:28 ` [PATCH 3/3] nsproxy: remove duplicate task_cred_xxx for user_ns Yuanhan Liu
2013-01-31 18:16 ` Serge E. Hallyn
2013-01-31 18:17 ` [PATCH 1/3] namespaces: utsname: fix wrong comment about clone_uts_ns() Serge E. Hallyn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1359624512-23469-2-git-send-email-yuanhan.liu@linux.intel.com \
--to=yuanhan.liu@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome