aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_hbadisc.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_hbadisc.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_hbadisc.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_hbadisc.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index 371f41e886d6..74c3b7039c9e 100644
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -57,6 +57,7 @@ static uint8_t lpfcAlpaArray[] = {
57}; 57};
58 58
59static void lpfc_disc_timeout_handler(struct lpfc_vport *); 59static void lpfc_disc_timeout_handler(struct lpfc_vport *);
60static void lpfc_disc_flush_list(struct lpfc_vport *vport);
60 61
61void 62void
62lpfc_terminate_rport_io(struct fc_rport *rport) 63lpfc_terminate_rport_io(struct fc_rport *rport)
@@ -170,7 +171,7 @@ lpfc_dev_loss_tmo_callbk(struct fc_rport *rport)
170 * This function is called from the worker thread when dev_loss_tmo 171 * This function is called from the worker thread when dev_loss_tmo
171 * expire. 172 * expire.
172 */ 173 */
173void 174static void
174lpfc_dev_loss_tmo_handler(struct lpfc_nodelist *ndlp) 175lpfc_dev_loss_tmo_handler(struct lpfc_nodelist *ndlp)
175{ 176{
176 struct lpfc_rport_data *rdata; 177 struct lpfc_rport_data *rdata;
@@ -752,7 +753,7 @@ lpfc_linkup(struct lpfc_hba *phba)
752 * as the completion routine when the command is 753 * as the completion routine when the command is
753 * handed off to the SLI layer. 754 * handed off to the SLI layer.
754 */ 755 */
755void 756static void
756lpfc_mbx_cmpl_clear_la(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) 757lpfc_mbx_cmpl_clear_la(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb)
757{ 758{
758 struct lpfc_vport *vport = pmb->vport; 759 struct lpfc_vport *vport = pmb->vport;
@@ -2452,7 +2453,7 @@ lpfc_free_tx(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp)
2452 } 2453 }
2453} 2454}
2454 2455
2455void 2456static void
2456lpfc_disc_flush_list(struct lpfc_vport *vport) 2457lpfc_disc_flush_list(struct lpfc_vport *vport)
2457{ 2458{
2458 struct lpfc_nodelist *ndlp, *next_ndlp; 2459 struct lpfc_nodelist *ndlp, *next_ndlp;
@@ -2783,7 +2784,7 @@ lpfc_filter_by_wwpn(struct lpfc_nodelist *ndlp, void *param)
2783 sizeof(ndlp->nlp_portname)) == 0; 2784 sizeof(ndlp->nlp_portname)) == 0;
2784} 2785}
2785 2786
2786struct lpfc_nodelist * 2787static struct lpfc_nodelist *
2787__lpfc_find_node(struct lpfc_vport *vport, node_filter filter, void *param) 2788__lpfc_find_node(struct lpfc_vport *vport, node_filter filter, void *param)
2788{ 2789{
2789 struct lpfc_nodelist *ndlp; 2790 struct lpfc_nodelist *ndlp;
@@ -2795,6 +2796,7 @@ __lpfc_find_node(struct lpfc_vport *vport, node_filter filter, void *param)
2795 return NULL; 2796 return NULL;
2796} 2797}
2797 2798
2799#if 0
2798/* 2800/*
2799 * Search node lists for a remote port matching filter criteria 2801 * Search node lists for a remote port matching filter criteria
2800 * Caller needs to hold host_lock before calling this routine. 2802 * Caller needs to hold host_lock before calling this routine.
@@ -2810,6 +2812,7 @@ lpfc_find_node(struct lpfc_vport *vport, node_filter filter, void *param)
2810 spin_unlock_irq(shost->host_lock); 2812 spin_unlock_irq(shost->host_lock);
2811 return ndlp; 2813 return ndlp;
2812} 2814}
2815#endif /* 0 */
2813 2816
2814/* 2817/*
2815 * This routine looks up the ndlp lists for the given RPI. If rpi found it 2818 * This routine looks up the ndlp lists for the given RPI. If rpi found it
@@ -2821,6 +2824,7 @@ __lpfc_findnode_rpi(struct lpfc_vport *vport, uint16_t rpi)
2821 return __lpfc_find_node(vport, lpfc_filter_by_rpi, &rpi); 2824 return __lpfc_find_node(vport, lpfc_filter_by_rpi, &rpi);
2822} 2825}
2823 2826
2827#if 0
2824struct lpfc_nodelist * 2828struct lpfc_nodelist *
2825lpfc_findnode_rpi(struct lpfc_vport *vport, uint16_t rpi) 2829lpfc_findnode_rpi(struct lpfc_vport *vport, uint16_t rpi)
2826{ 2830{
@@ -2832,6 +2836,7 @@ lpfc_findnode_rpi(struct lpfc_vport *vport, uint16_t rpi)
2832 spin_unlock_irq(shost->host_lock); 2836 spin_unlock_irq(shost->host_lock);
2833 return ndlp; 2837 return ndlp;
2834} 2838}
2839#endif /* 0 */
2835 2840
2836/* 2841/*
2837 * This routine looks up the ndlp lists for the given WWPN. If WWPN found it 2842 * This routine looks up the ndlp lists for the given WWPN. If WWPN found it