The patch below fixes the sparse warnings in ib_srpt.c about missing
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 24 Oct 2008 12:14:11 +0000 (12:14 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 24 Oct 2008 12:14:11 +0000 (12:14 +0000)
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: https://scst.svn.sourceforge.net/svnroot/scst/trunk@539 d57e44dd-8a1f-0410-8b47-8ef2f437770f

srpt/src/ib_srpt.c

index 7e54c02..d25d2c6 100644 (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,