mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
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:
+3
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user