Commit 3999df75 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: lpfc: Declare local functions static

This patch avoids that the compiler complains about missing declarations
when building with W=1.

Cc: James Smart <james.smart@broadcom.com>
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Acked-by: default avatarJames Smart <james.smart@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 94e424c6
...@@ -1281,7 +1281,7 @@ lpfc_do_offline(struct lpfc_hba *phba, uint32_t type) ...@@ -1281,7 +1281,7 @@ lpfc_do_offline(struct lpfc_hba *phba, uint32_t type)
* -EBUSY, port is not in offline state * -EBUSY, port is not in offline state
* 0, successful * 0, successful
*/ */
int static int
lpfc_reset_pci_bus(struct lpfc_hba *phba) lpfc_reset_pci_bus(struct lpfc_hba *phba)
{ {
struct pci_dev *pdev = phba->pcidev; struct pci_dev *pdev = phba->pcidev;
...@@ -1612,7 +1612,7 @@ lpfc_nport_evt_cnt_show(struct device *dev, struct device_attribute *attr, ...@@ -1612,7 +1612,7 @@ lpfc_nport_evt_cnt_show(struct device *dev, struct device_attribute *attr,
return scnprintf(buf, PAGE_SIZE, "%d\n", phba->nport_event_cnt); return scnprintf(buf, PAGE_SIZE, "%d\n", phba->nport_event_cnt);
} }
int static int
lpfc_set_trunking(struct lpfc_hba *phba, char *buff_out) lpfc_set_trunking(struct lpfc_hba *phba, char *buff_out)
{ {
LPFC_MBOXQ_t *mbox = NULL; LPFC_MBOXQ_t *mbox = NULL;
......
...@@ -3080,7 +3080,7 @@ lpfc_sli4_node_prep(struct lpfc_hba *phba) ...@@ -3080,7 +3080,7 @@ lpfc_sli4_node_prep(struct lpfc_hba *phba)
* This routine moves a batch of XRIs from lpfc_io_buf_list_put of HWQ 0 * This routine moves a batch of XRIs from lpfc_io_buf_list_put of HWQ 0
* to expedite pool. Mark them as expedite. * to expedite pool. Mark them as expedite.
**/ **/
void lpfc_create_expedite_pool(struct lpfc_hba *phba) static void lpfc_create_expedite_pool(struct lpfc_hba *phba)
{ {
struct lpfc_sli4_hdw_queue *qp; struct lpfc_sli4_hdw_queue *qp;
struct lpfc_io_buf *lpfc_ncmd; struct lpfc_io_buf *lpfc_ncmd;
...@@ -3115,7 +3115,7 @@ void lpfc_create_expedite_pool(struct lpfc_hba *phba) ...@@ -3115,7 +3115,7 @@ void lpfc_create_expedite_pool(struct lpfc_hba *phba)
* This routine returns XRIs from expedite pool to lpfc_io_buf_list_put * This routine returns XRIs from expedite pool to lpfc_io_buf_list_put
* of HWQ 0. Clear the mark. * of HWQ 0. Clear the mark.
**/ **/
void lpfc_destroy_expedite_pool(struct lpfc_hba *phba) static void lpfc_destroy_expedite_pool(struct lpfc_hba *phba)
{ {
struct lpfc_sli4_hdw_queue *qp; struct lpfc_sli4_hdw_queue *qp;
struct lpfc_io_buf *lpfc_ncmd; struct lpfc_io_buf *lpfc_ncmd;
...@@ -3235,7 +3235,7 @@ void lpfc_create_multixri_pools(struct lpfc_hba *phba) ...@@ -3235,7 +3235,7 @@ void lpfc_create_multixri_pools(struct lpfc_hba *phba)
* *
* This routine returns XRIs from public/private to lpfc_io_buf_list_put. * This routine returns XRIs from public/private to lpfc_io_buf_list_put.
**/ **/
void lpfc_destroy_multixri_pools(struct lpfc_hba *phba) static void lpfc_destroy_multixri_pools(struct lpfc_hba *phba)
{ {
u32 i; u32 i;
u32 hwq_count; u32 hwq_count;
...@@ -4465,7 +4465,7 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time) ...@@ -4465,7 +4465,7 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time)
return stat; return stat;
} }
void lpfc_host_supported_speeds_set(struct Scsi_Host *shost) static void lpfc_host_supported_speeds_set(struct Scsi_Host *shost)
{ {
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
struct lpfc_hba *phba = vport->phba; struct lpfc_hba *phba = vport->phba;
...@@ -9312,7 +9312,7 @@ lpfc_create_wq_cq(struct lpfc_hba *phba, struct lpfc_queue *eq, ...@@ -9312,7 +9312,7 @@ lpfc_create_wq_cq(struct lpfc_hba *phba, struct lpfc_queue *eq,
* This routine will populate the cq_lookup table by all * This routine will populate the cq_lookup table by all
* available CQ queue_id's. * available CQ queue_id's.
**/ **/
void static void
lpfc_setup_cq_lookup(struct lpfc_hba *phba) lpfc_setup_cq_lookup(struct lpfc_hba *phba)
{ {
struct lpfc_queue *eq, *childq; struct lpfc_queue *eq, *childq;
......
...@@ -870,7 +870,7 @@ lpfc_disc_set_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) ...@@ -870,7 +870,7 @@ lpfc_disc_set_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
* This function will send a unreg_login mailbox command to the firmware * This function will send a unreg_login mailbox command to the firmware
* to release a rpi. * to release a rpi.
**/ **/
void static void
lpfc_release_rpi(struct lpfc_hba *phba, struct lpfc_vport *vport, lpfc_release_rpi(struct lpfc_hba *phba, struct lpfc_vport *vport,
struct lpfc_nodelist *ndlp, uint16_t rpi) struct lpfc_nodelist *ndlp, uint16_t rpi)
{ {
......
...@@ -312,7 +312,7 @@ lpfc_nvme_localport_delete(struct nvme_fc_local_port *localport) ...@@ -312,7 +312,7 @@ lpfc_nvme_localport_delete(struct nvme_fc_local_port *localport)
* Return value : * Return value :
* None * None
*/ */
void static void
lpfc_nvme_remoteport_delete(struct nvme_fc_remote_port *remoteport) lpfc_nvme_remoteport_delete(struct nvme_fc_remote_port *remoteport)
{ {
struct lpfc_nvme_rport *rport = remoteport->private; struct lpfc_nvme_rport *rport = remoteport->private;
...@@ -2135,7 +2135,7 @@ lpfc_nvme_create_localport(struct lpfc_vport *vport) ...@@ -2135,7 +2135,7 @@ lpfc_nvme_create_localport(struct lpfc_vport *vport)
* An uninterruptible wait is used because of the risk of transport-to- * An uninterruptible wait is used because of the risk of transport-to-
* driver state mismatch. * driver state mismatch.
*/ */
void static void
lpfc_nvme_lport_unreg_wait(struct lpfc_vport *vport, lpfc_nvme_lport_unreg_wait(struct lpfc_vport *vport,
struct lpfc_nvme_lport *lport, struct lpfc_nvme_lport *lport,
struct completion *lport_unreg_cmp) struct completion *lport_unreg_cmp)
......
...@@ -220,7 +220,7 @@ lpfc_nvmet_cmd_template(void) ...@@ -220,7 +220,7 @@ lpfc_nvmet_cmd_template(void)
/* Word 12, 13, 14, 15 - is zero */ /* Word 12, 13, 14, 15 - is zero */
} }
void static void
lpfc_nvmet_defer_release(struct lpfc_hba *phba, struct lpfc_nvmet_rcv_ctx *ctxp) lpfc_nvmet_defer_release(struct lpfc_hba *phba, struct lpfc_nvmet_rcv_ctx *ctxp)
{ {
lockdep_assert_held(&ctxp->ctxlock); lockdep_assert_held(&ctxp->ctxlock);
......
...@@ -3931,7 +3931,7 @@ lpfc_sli_abort_iocb_ring(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) ...@@ -3931,7 +3931,7 @@ lpfc_sli_abort_iocb_ring(struct lpfc_hba *phba, struct lpfc_sli_ring *pring)
* in txcmplq. The iocbs in the txcmplq is not guaranteed to complete before * in txcmplq. The iocbs in the txcmplq is not guaranteed to complete before
* the return of this function. The caller is not required to hold any locks. * the return of this function. The caller is not required to hold any locks.
**/ **/
void static void
lpfc_sli_abort_wqe_ring(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) lpfc_sli_abort_wqe_ring(struct lpfc_hba *phba, struct lpfc_sli_ring *pring)
{ {
LIST_HEAD(completions); LIST_HEAD(completions);
...@@ -7099,7 +7099,7 @@ lpfc_sli4_repost_sgl_list(struct lpfc_hba *phba, ...@@ -7099,7 +7099,7 @@ lpfc_sli4_repost_sgl_list(struct lpfc_hba *phba,
* *
* Returns: 0 = success, non-zero failure. * Returns: 0 = success, non-zero failure.
**/ **/
int static int
lpfc_sli4_repost_io_sgl_list(struct lpfc_hba *phba) lpfc_sli4_repost_io_sgl_list(struct lpfc_hba *phba)
{ {
LIST_HEAD(post_nblist); LIST_HEAD(post_nblist);
...@@ -7119,7 +7119,7 @@ lpfc_sli4_repost_io_sgl_list(struct lpfc_hba *phba) ...@@ -7119,7 +7119,7 @@ lpfc_sli4_repost_io_sgl_list(struct lpfc_hba *phba)
return rc; return rc;
} }
void static void
lpfc_set_host_data(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox) lpfc_set_host_data(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox)
{ {
uint32_t len; uint32_t len;
......
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