summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_sysctl.c
diff options
context:
space:
mode:
authorSerge E. Hallyn2009-04-03 01:58:27 +0200
committerLinus Torvalds2009-04-03 04:05:01 +0200
commit11dea1900931ac73184b2f5163a13d24a4e572ea (patch)
tree409e081e9afa0cc8f05ae0051942de99a79cd9f0 /ipc/ipc_sysctl.c
parentipc: make shm_get_stat() more robust (diff)
downloadkernel-qcow2-linux-11dea1900931ac73184b2f5163a13d24a4e572ea.tar.gz
kernel-qcow2-linux-11dea1900931ac73184b2f5163a13d24a4e572ea.tar.xz
kernel-qcow2-linux-11dea1900931ac73184b2f5163a13d24a4e572ea.zip
proc_sysctl: use CONFIG_PROC_SYSCTL around ipc and utsname proc_handlers
As pointed out by Cedric Le Goater (in response to Alexey's original comment wrt mqns), ipc_sysctl.c and utsname_sysctl.c are using CONFIG_PROC_FS, not CONFIG_PROC_SYSCTL, to determine whether to define the proc_handlers. Change that. Signed-off-by: Serge E. Hallyn <serue@us.ibm.com> Cc: Cedric Le Goater <clg@fr.ibm.com> Acked-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/ipc_sysctl.c')
-rw-r--r--ipc/ipc_sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/ipc_sysctl.c b/ipc/ipc_sysctl.c
index 4a7a12c95abe..40eab7314aeb 100644
--- a/ipc/ipc_sysctl.c
+++ b/ipc/ipc_sysctl.c
@@ -26,7 +26,7 @@ static void *get_ipc(ctl_table *table)
return which;
}
-#ifdef CONFIG_PROC_FS
+#ifdef CONFIG_PROC_SYSCTL
static int proc_ipc_dointvec(ctl_table *table, int write, struct file *filp,
void __user *buffer, size_t *lenp, loff_t *ppos)
{