From 5a8360d9d898a3e1c214963e87dcb01c9953a277 Mon Sep 17 00:00:00 2001 From: vlnb Date: Wed, 9 Jul 2008 17:35:11 +0000 Subject: [PATCH] Add the "static" qualifier to function that isn't being declared (in h file) or exported to fix the following sparse warning: /scst/trunk/iscsi-scst/kernel/iscsi.c:166:6: warning: symbol 'cmnd_free' was not declared. Should it be static? Signed-off-by: Dotan Barak git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@448 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsi-scst/kernel/iscsi.c b/iscsi-scst/kernel/iscsi.c index 39fc5c5..261f87c 100644 --- a/iscsi-scst/kernel/iscsi.c +++ b/iscsi-scst/kernel/iscsi.c @@ -163,7 +163,7 @@ struct iscsi_cmnd *cmnd_alloc(struct iscsi_conn *conn, struct iscsi_cmnd *parent } /* Frees a command. Also frees the additional header. */ -void cmnd_free(struct iscsi_cmnd *cmnd) +static void cmnd_free(struct iscsi_cmnd *cmnd) { TRACE_DBG("%p", cmnd); -- 2.17.1