From 2688d2b8c4e78e27d661792720be259d69bf0f9b Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 24 Oct 2008 12:14:11 +0000 Subject: [PATCH] The patch below fixes the sparse warnings in ib_srpt.c about missing declarations by inserting the keyword static where appropriate. This patch has been verified by rereading the patch carefully, and by verifying that SCST source code still compiles fine. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@539 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 7e54c020b..d25d2c649 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -64,7 +64,7 @@ static u64 mellanox_ioc_guid; static struct list_head srpt_devices; static int thread = 1; static struct srpt_thread srpt_thread; -DECLARE_WAIT_QUEUE_HEAD(ioctx_list_waitQ); +static DECLARE_WAIT_QUEUE_HEAD(ioctx_list_waitQ); module_param(thread, int, 0444); MODULE_PARM_DESC(thread, @@ -2031,7 +2031,7 @@ static int srpt_release(struct scst_tgt *scst_tgt) return 0; } -int srpt_ioctx_thread(void *arg) +static int srpt_ioctx_thread(void *arg) { struct srpt_ioctx *ioctx; @@ -2086,7 +2086,7 @@ int srpt_ioctx_thread(void *arg) return 0; } -struct scst_tgt_template srpt_template = { +static struct scst_tgt_template srpt_template = { .name = DRV_NAME, .sg_tablesize = SRPT_DEF_SG_TABLESIZE, .xmit_response_atomic = 1,