Commit 2374dd23 authored by Bart Van Assche's avatar Bart Van Assche Committed by James Bottomley

qla2xxx: Declare local functions static

Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Acked-by: default avatarHimanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent c3ff356d
...@@ -405,7 +405,7 @@ qla2x00_process_els(struct fc_bsg_job *bsg_job) ...@@ -405,7 +405,7 @@ qla2x00_process_els(struct fc_bsg_job *bsg_job)
return rval; return rval;
} }
inline uint16_t static inline uint16_t
qla24xx_calc_ct_iocbs(uint16_t dsds) qla24xx_calc_ct_iocbs(uint16_t dsds)
{ {
uint16_t iocbs; uint16_t iocbs;
......
...@@ -680,7 +680,7 @@ qla24xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt, ...@@ -680,7 +680,7 @@ qla24xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt,
* *
* Returns the number of dsd list needed to store @dsds. * Returns the number of dsd list needed to store @dsds.
*/ */
inline uint16_t static inline uint16_t
qla24xx_calc_dsd_lists(uint16_t dsds) qla24xx_calc_dsd_lists(uint16_t dsds)
{ {
uint16_t dsd_lists = 0; uint16_t dsd_lists = 0;
...@@ -700,7 +700,7 @@ qla24xx_calc_dsd_lists(uint16_t dsds) ...@@ -700,7 +700,7 @@ qla24xx_calc_dsd_lists(uint16_t dsds)
* @cmd_pkt: Command type 3 IOCB * @cmd_pkt: Command type 3 IOCB
* @tot_dsds: Total number of segments to transfer * @tot_dsds: Total number of segments to transfer
*/ */
inline void static inline void
qla24xx_build_scsi_iocbs(srb_t *sp, struct cmd_type_7 *cmd_pkt, qla24xx_build_scsi_iocbs(srb_t *sp, struct cmd_type_7 *cmd_pkt,
uint16_t tot_dsds) uint16_t tot_dsds)
{ {
......
...@@ -2298,7 +2298,7 @@ void qla82xx_init_flags(struct qla_hw_data *ha) ...@@ -2298,7 +2298,7 @@ void qla82xx_init_flags(struct qla_hw_data *ha)
ha->nx_legacy_intr.pci_int_reg = nx_legacy_intr->pci_int_reg; ha->nx_legacy_intr.pci_int_reg = nx_legacy_intr->pci_int_reg;
} }
inline void static inline void
qla82xx_set_idc_version(scsi_qla_host_t *vha) qla82xx_set_idc_version(scsi_qla_host_t *vha)
{ {
int idc_ver; int idc_ver;
......
...@@ -561,7 +561,7 @@ qla8044_read_optrom_data(struct scsi_qla_host *vha, uint8_t *buf, ...@@ -561,7 +561,7 @@ qla8044_read_optrom_data(struct scsi_qla_host *vha, uint8_t *buf,
return buf; return buf;
} }
inline int static inline int
qla8044_need_reset(struct scsi_qla_host *vha) qla8044_need_reset(struct scsi_qla_host *vha)
{ {
uint32_t drv_state, drv_active; uint32_t drv_state, drv_active;
...@@ -1605,7 +1605,7 @@ qla8044_set_idc_dontreset(struct scsi_qla_host *vha) ...@@ -1605,7 +1605,7 @@ qla8044_set_idc_dontreset(struct scsi_qla_host *vha)
qla8044_wr_reg(ha, QLA8044_IDC_DRV_CTRL, idc_ctrl); qla8044_wr_reg(ha, QLA8044_IDC_DRV_CTRL, idc_ctrl);
} }
inline void static inline void
qla8044_set_rst_ready(struct scsi_qla_host *vha) qla8044_set_rst_ready(struct scsi_qla_host *vha)
{ {
uint32_t drv_state; uint32_t drv_state;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment