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 <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@539 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2008-10-24 12:14:11 +00:00
parent 6077bb04e5
commit 2688d2b8c4
+3 -3
View File
@@ -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,