diff options
author | Vikas Chaudhary <vikas.chaudhary@qlogic.com> | 2012-02-27 06:08:56 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-02-29 18:01:14 -0500 |
commit | a7380a65312c98317aab70df6512c620369c2f19 (patch) | |
tree | 57c2a82ad8d53de63df82b2a190e7910b6e52f05 | |
parent | 173269ef2900bf824032103b98f3446375a4f8d9 (diff) |
[SCSI] qla4xxx: Fix sparse warning
Fix following warning:-
drivers/scsi/qla4xxx/ql4_os.c:35:5: warning: symbol 'ql4xdisablesysfsboot' was not declared. Should it be static?
drivers/scsi/qla4xxx/ql4_iocb.c:461:5: warning: symbol 'qla4xxx_send_mbox_iocb' was not declared. Should it be static?
drivers/scsi/qla4xxx/ql4_os.c:3025:6: warning: symbol 'qla4xxx_do_work' was not declared. Should it be static?
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_iocb.c | 4 | ||||
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_os.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_iocb.c b/drivers/scsi/qla4xxx/ql4_iocb.c index c70651ddaf8b..2a2022a6bb9b 100644 --- a/drivers/scsi/qla4xxx/ql4_iocb.c +++ b/drivers/scsi/qla4xxx/ql4_iocb.c | |||
@@ -458,8 +458,8 @@ static struct mrb *qla4xxx_get_new_mrb(struct scsi_qla_host *ha) | |||
458 | return mrb; | 458 | return mrb; |
459 | } | 459 | } |
460 | 460 | ||
461 | int qla4xxx_send_mbox_iocb(struct scsi_qla_host *ha, struct mrb *mrb, | 461 | static int qla4xxx_send_mbox_iocb(struct scsi_qla_host *ha, struct mrb *mrb, |
462 | uint32_t *in_mbox) | 462 | uint32_t *in_mbox) |
463 | { | 463 | { |
464 | int rval = QLA_SUCCESS; | 464 | int rval = QLA_SUCCESS; |
465 | uint32_t i; | 465 | uint32_t i; |
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 50074ed95767..d1520ad3ae6a 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c | |||
@@ -32,7 +32,7 @@ static struct kmem_cache *srb_cachep; | |||
32 | /* | 32 | /* |
33 | * Module parameter information and variables | 33 | * Module parameter information and variables |
34 | */ | 34 | */ |
35 | int ql4xdisablesysfsboot = 1; | 35 | static int ql4xdisablesysfsboot = 1; |
36 | module_param(ql4xdisablesysfsboot, int, S_IRUGO | S_IWUSR); | 36 | module_param(ql4xdisablesysfsboot, int, S_IRUGO | S_IWUSR); |
37 | MODULE_PARM_DESC(ql4xdisablesysfsboot, | 37 | MODULE_PARM_DESC(ql4xdisablesysfsboot, |
38 | " Set to disable exporting boot targets to sysfs.\n" | 38 | " Set to disable exporting boot targets to sysfs.\n" |
@@ -3238,7 +3238,7 @@ int qla4xxx_post_ping_evt_work(struct scsi_qla_host *ha, | |||
3238 | return QLA_SUCCESS; | 3238 | return QLA_SUCCESS; |
3239 | } | 3239 | } |
3240 | 3240 | ||
3241 | void qla4xxx_do_work(struct scsi_qla_host *ha) | 3241 | static void qla4xxx_do_work(struct scsi_qla_host *ha) |
3242 | { | 3242 | { |
3243 | struct qla4_work_evt *e, *tmp; | 3243 | struct qla4_work_evt *e, *tmp; |
3244 | unsigned long flags; | 3244 | unsigned long flags; |