diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-09-18 08:07:59 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-09-19 11:59:32 -0400 |
commit | 2f3e77323d3159cb6c2a002fa6c58ba22e7c837e (patch) | |
tree | 47cdb8f96155bb3fc11f9c4f32a885c41e8ac4ca | |
parent | 87adbe08b644cd4dfa078ec1a09be7d2b24ce97d (diff) |
scsi: megaraid_sas: clean function declarations in megaraid_sas_base.c up
We get a few warnings when building kernel with W=1:
drivers/scsi/megaraid/megaraid_sas_fusion.c:281:1: warning: no previous prototype for 'megasas_free_cmds_fusion' [-Wmissing-prototypes]
drivers/scsi/megaraid/megaraid_sas_fusion.c:714:1: warning: no previous prototype for 'megasas_ioc_init_fusion' [-Wmissing-prototypes]
....
In fact, these functions are declared in
drivers/scsi/megaraid/megaraid_sas_base.c, but should be declared in a
header file, thus can be recognized in other file.
So this patch adds the declarations into
drivers/scsi/megaraid/megaraid_sas_fusion.h.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas_base.c | 13 | ||||
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas_fusion.h | 9 |
2 files changed, 9 insertions, 13 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index 255f79ea9813..c3efcc725540 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c | |||
@@ -189,25 +189,12 @@ u32 | |||
189 | megasas_build_and_issue_cmd(struct megasas_instance *instance, | 189 | megasas_build_and_issue_cmd(struct megasas_instance *instance, |
190 | struct scsi_cmnd *scmd); | 190 | struct scsi_cmnd *scmd); |
191 | static void megasas_complete_cmd_dpc(unsigned long instance_addr); | 191 | static void megasas_complete_cmd_dpc(unsigned long instance_addr); |
192 | void | ||
193 | megasas_release_fusion(struct megasas_instance *instance); | ||
194 | int | ||
195 | megasas_ioc_init_fusion(struct megasas_instance *instance); | ||
196 | void | ||
197 | megasas_free_cmds_fusion(struct megasas_instance *instance); | ||
198 | u8 | ||
199 | megasas_get_map_info(struct megasas_instance *instance); | ||
200 | int | ||
201 | megasas_sync_map_info(struct megasas_instance *instance); | ||
202 | int | 192 | int |
203 | wait_and_poll(struct megasas_instance *instance, struct megasas_cmd *cmd, | 193 | wait_and_poll(struct megasas_instance *instance, struct megasas_cmd *cmd, |
204 | int seconds); | 194 | int seconds); |
205 | void megasas_reset_reply_desc(struct megasas_instance *instance); | ||
206 | void megasas_fusion_ocr_wq(struct work_struct *work); | 195 | void megasas_fusion_ocr_wq(struct work_struct *work); |
207 | static int megasas_get_ld_vf_affiliation(struct megasas_instance *instance, | 196 | static int megasas_get_ld_vf_affiliation(struct megasas_instance *instance, |
208 | int initial); | 197 | int initial); |
209 | int megasas_check_mpio_paths(struct megasas_instance *instance, | ||
210 | struct scsi_cmnd *scmd); | ||
211 | 198 | ||
212 | int | 199 | int |
213 | megasas_issue_dcmd(struct megasas_instance *instance, struct megasas_cmd *cmd) | 200 | megasas_issue_dcmd(struct megasas_instance *instance, struct megasas_cmd *cmd) |
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.h b/drivers/scsi/megaraid/megaraid_sas_fusion.h index 80eaee22f5bc..e3bee04c1eb1 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.h +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.h | |||
@@ -991,5 +991,14 @@ union desc_value { | |||
991 | } u; | 991 | } u; |
992 | }; | 992 | }; |
993 | 993 | ||
994 | void megasas_free_cmds_fusion(struct megasas_instance *instance); | ||
995 | int megasas_ioc_init_fusion(struct megasas_instance *instance); | ||
996 | u8 megasas_get_map_info(struct megasas_instance *instance); | ||
997 | int megasas_sync_map_info(struct megasas_instance *instance); | ||
998 | void megasas_release_fusion(struct megasas_instance *instance); | ||
999 | void megasas_reset_reply_desc(struct megasas_instance *instance); | ||
1000 | int megasas_check_mpio_paths(struct megasas_instance *instance, | ||
1001 | struct scsi_cmnd *scmd); | ||
1002 | void megasas_fusion_ocr_wq(struct work_struct *work); | ||
994 | 1003 | ||
995 | #endif /* _MEGARAID_SAS_FUSION_H_ */ | 1004 | #endif /* _MEGARAID_SAS_FUSION_H_ */ |