From: Geert Uytterhoeven Date: Mon, 13 Apr 2009 21:39:48 +0000 (-0700) Subject: namespaces: move get_mq() inside #ifdef CONFIG_SYSCTL X-Git-Tag: MMI-PSA29.97-13-9~28502 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f26ec5baa67524b00311b8ec4626efc0a95925e1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git namespaces: move get_mq() inside #ifdef CONFIG_SYSCTL | ipc/mq_sysctl.c:26: warning: 'get_mq' defined but not used Signed-off-by: Geert Uytterhoeven Acked-by: Serge Hallyn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/ipc/mq_sysctl.c b/ipc/mq_sysctl.c index 89f60ec8ee54..24ae46dfe45d 100644 --- a/ipc/mq_sysctl.c +++ b/ipc/mq_sysctl.c @@ -22,6 +22,7 @@ #define MIN_MSGSIZEMAX 128 /* min value for msgsize_max */ #define MAX_MSGSIZEMAX (8192*128) /* max value for msgsize_max */ +#ifdef CONFIG_PROC_SYSCTL static void *get_mq(ctl_table *table) { char *which = table->data; @@ -30,7 +31,6 @@ static void *get_mq(ctl_table *table) return which; } -#ifdef CONFIG_PROC_SYSCTL static int proc_mq_dointvec(ctl_table *table, int write, struct file *filp, void __user *buffer, size_t *lenp, loff_t *ppos) {