[PATCH 3/3] ipc: fix warning of not used variable

From: Jianjun Kong
Date: Wed Dec 03 2008 - 20:01:08 EST



fix this warning:
ipc/ipc_sysctl.c:39: warning: âipc_auto_callbackâ defined but not used
ipc_auto_callback() just called when CONFIG_PROC_FS was defined.


Signed-off-by: Jianjun Kong <jianjun@xxxxxxxxx>
---
ipc/ipc_sysctl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ipc/ipc_sysctl.c b/ipc/ipc_sysctl.c
index 0dfebc5..9e42478 100644
--- a/ipc/ipc_sysctl.c
+++ b/ipc/ipc_sysctl.c
@@ -35,6 +35,7 @@ static void *get_ipc(ctl_table *table)
* add/remove or ipc namespace creation/removal.
* 1: register back the callback routine.
*/
+#ifdef CONFIG_PROC_FS
static void ipc_auto_callback(int val)
{
if (!val)
@@ -49,7 +50,6 @@ static void ipc_auto_callback(int val)
}
}

-#ifdef CONFIG_PROC_FS
static int proc_ipc_dointvec(ctl_table *table, int write, struct file *filp,
void __user *buffer, size_t *lenp, loff_t *ppos)
{
--
1.5.6.3

--
Jianjun Kong | Happy Hacking
HOMEPAGE: http://kongove.cn/
GTALK: kongjianjun@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/