lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081204010026.GC17445@ubuntu>
Date:	Thu, 4 Dec 2008 09:00:26 +0800
From:	Jianjun Kong <jianjun@...ux.org>
To:	akpm@...ux-foundation.org
Cc:	Linux-Kernel-Mailing-List <linux-kernel@...r.kernel.org>
Subject: [PATCH 3/3] ipc: fix warning of not used variable


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@...ux.org>
---
 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@...il.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ