aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_els.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-11-05 12:07:33 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-11 19:22:50 -0500
commita6ababd26aac6ef875df2055dcc147ccda2f8364 (patch)
treef11de02783b8912c0f6dee378af9491900f895be /drivers/scsi/lpfc/lpfc_els.c
parent001aac257cf8adbe90cdcba6e07f8d12dfc8fa6b (diff)
[SCSI] lpfc: minor cleanups
This patch contains the following minor cleanups: - make the following needlessly global functions static: - lpfc_els.c: lpfc_register_new_vport() - lpfc_els.c: lpfc_issue_els_fdisc() - lpfc_els.c: lpfc_issue_fabric_iocb() - lpfc_els.c: lpfc_fabric_abort_vport() - lpfc_hbadisc.c: lpfc_dev_loss_tmo_handler() - lpfc_hbadisc.c: lpfc_mbx_cmpl_clear_la() - lpfc_hbadisc.c: lpfc_disc_flush_list() - lpfc_hbadisc.c: __lpfc_find_node() - lpfc_init.c: lpfc_hb_timeout() - lpfc_init.c: lpfc_block_mgmt_io() - lpfc_sli.c: __lpfc_sli_release_iocbq() - lpfc_sli.c: lpfc_sli_next_hbq_slot() - lpfc_sli.c: lpfc_sli_hbqbuf_init_hbqs() - lpfc_sli.c: lpfc_sli_hbqbuf_find() - lpfc_sli.c: __lpfc_sli_issue_iocb() - #if 0 the following unused global functions: - lpfc_els.c: lpfc_fabric_abort_flogi() - lpfc_hbadisc.c: lpfc_find_node() - lpfc_hbadisc.c: lpfc_findnode_rpi() - remove the unused exports Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: James Smart <James.Smart@Emulex.Com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_els.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_els.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c
index 9315c3c2e6f6..bf332cba2fc0 100644
--- a/drivers/scsi/lpfc/lpfc_els.c
+++ b/drivers/scsi/lpfc/lpfc_els.c
@@ -42,6 +42,14 @@ static int lpfc_els_retry(struct lpfc_hba *, struct lpfc_iocbq *,
42 struct lpfc_iocbq *); 42 struct lpfc_iocbq *);
43static void lpfc_cmpl_fabric_iocb(struct lpfc_hba *, struct lpfc_iocbq *, 43static void lpfc_cmpl_fabric_iocb(struct lpfc_hba *, struct lpfc_iocbq *,
44 struct lpfc_iocbq *); 44 struct lpfc_iocbq *);
45static void lpfc_fabric_abort_vport(struct lpfc_vport *vport);
46static int lpfc_issue_els_fdisc(struct lpfc_vport *vport,
47 struct lpfc_nodelist *ndlp, uint8_t retry);
48static int lpfc_issue_fabric_iocb(struct lpfc_hba *phba,
49 struct lpfc_iocbq *iocb);
50static void lpfc_register_new_vport(struct lpfc_hba *phba,
51 struct lpfc_vport *vport,
52 struct lpfc_nodelist *ndlp);
45 53
46static int lpfc_max_els_tries = 3; 54static int lpfc_max_els_tries = 3;
47 55
@@ -4254,7 +4262,7 @@ lpfc_cmpl_reg_new_vport(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb)
4254 return; 4262 return;
4255} 4263}
4256 4264
4257void 4265static void
4258lpfc_register_new_vport(struct lpfc_hba *phba, struct lpfc_vport *vport, 4266lpfc_register_new_vport(struct lpfc_hba *phba, struct lpfc_vport *vport,
4259 struct lpfc_nodelist *ndlp) 4267 struct lpfc_nodelist *ndlp)
4260{ 4268{
@@ -4369,7 +4377,7 @@ out:
4369 lpfc_els_free_iocb(phba, cmdiocb); 4377 lpfc_els_free_iocb(phba, cmdiocb);
4370} 4378}
4371 4379
4372int 4380static int
4373lpfc_issue_els_fdisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, 4381lpfc_issue_els_fdisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
4374 uint8_t retry) 4382 uint8_t retry)
4375{ 4383{
@@ -4642,7 +4650,7 @@ lpfc_cmpl_fabric_iocb(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
4642 } 4650 }
4643} 4651}
4644 4652
4645int 4653static int
4646lpfc_issue_fabric_iocb(struct lpfc_hba *phba, struct lpfc_iocbq *iocb) 4654lpfc_issue_fabric_iocb(struct lpfc_hba *phba, struct lpfc_iocbq *iocb)
4647{ 4655{
4648 unsigned long iflags; 4656 unsigned long iflags;
@@ -4686,7 +4694,7 @@ lpfc_issue_fabric_iocb(struct lpfc_hba *phba, struct lpfc_iocbq *iocb)
4686} 4694}
4687 4695
4688 4696
4689void lpfc_fabric_abort_vport(struct lpfc_vport *vport) 4697static void lpfc_fabric_abort_vport(struct lpfc_vport *vport)
4690{ 4698{
4691 LIST_HEAD(completions); 4699 LIST_HEAD(completions);
4692 struct lpfc_hba *phba = vport->phba; 4700 struct lpfc_hba *phba = vport->phba;
@@ -4766,6 +4774,7 @@ void lpfc_fabric_abort_hba(struct lpfc_hba *phba)
4766} 4774}
4767 4775
4768 4776
4777#if 0
4769void lpfc_fabric_abort_flogi(struct lpfc_hba *phba) 4778void lpfc_fabric_abort_flogi(struct lpfc_hba *phba)
4770{ 4779{
4771 LIST_HEAD(completions); 4780 LIST_HEAD(completions);
@@ -4796,5 +4805,6 @@ void lpfc_fabric_abort_flogi(struct lpfc_hba *phba)
4796 (piocb->iocb_cmpl) (phba, piocb, piocb); 4805 (piocb->iocb_cmpl) (phba, piocb, piocb);
4797 } 4806 }
4798} 4807}
4808#endif /* 0 */
4799 4809
4800 4810