diff options
author | Adrian Bunk <bunk@kernel.org> | 2007-11-05 12:07:33 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-11 19:22:50 -0500 |
commit | a6ababd26aac6ef875df2055dcc147ccda2f8364 (patch) | |
tree | f11de02783b8912c0f6dee378af9491900f895be /drivers/scsi/lpfc/lpfc_crtn.h | |
parent | 001aac257cf8adbe90cdcba6e07f8d12dfc8fa6b (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_crtn.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_crtn.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/scsi/lpfc/lpfc_crtn.h b/drivers/scsi/lpfc/lpfc_crtn.h index 87bea176ac05..d09eb533a27d 100644 --- a/drivers/scsi/lpfc/lpfc_crtn.h +++ b/drivers/scsi/lpfc/lpfc_crtn.h | |||
@@ -48,7 +48,6 @@ int lpfc_linkdown(struct lpfc_hba *); | |||
48 | void lpfc_port_link_failure(struct lpfc_vport *); | 48 | void lpfc_port_link_failure(struct lpfc_vport *); |
49 | void lpfc_mbx_cmpl_read_la(struct lpfc_hba *, LPFC_MBOXQ_t *); | 49 | void lpfc_mbx_cmpl_read_la(struct lpfc_hba *, LPFC_MBOXQ_t *); |
50 | 50 | ||
51 | void lpfc_mbx_cmpl_clear_la(struct lpfc_hba *, LPFC_MBOXQ_t *); | ||
52 | void lpfc_mbx_cmpl_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *); | 51 | void lpfc_mbx_cmpl_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *); |
53 | void lpfc_mbx_cmpl_dflt_rpi(struct lpfc_hba *, LPFC_MBOXQ_t *); | 52 | void lpfc_mbx_cmpl_dflt_rpi(struct lpfc_hba *, LPFC_MBOXQ_t *); |
54 | void lpfc_mbx_cmpl_fabric_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *); | 53 | void lpfc_mbx_cmpl_fabric_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *); |
@@ -73,13 +72,11 @@ int lpfc_nlp_not_used(struct lpfc_nodelist *ndlp); | |||
73 | struct lpfc_nodelist *lpfc_setup_disc_node(struct lpfc_vport *, uint32_t); | 72 | struct lpfc_nodelist *lpfc_setup_disc_node(struct lpfc_vport *, uint32_t); |
74 | void lpfc_disc_list_loopmap(struct lpfc_vport *); | 73 | void lpfc_disc_list_loopmap(struct lpfc_vport *); |
75 | void lpfc_disc_start(struct lpfc_vport *); | 74 | void lpfc_disc_start(struct lpfc_vport *); |
76 | void lpfc_disc_flush_list(struct lpfc_vport *); | ||
77 | void lpfc_cleanup_discovery_resources(struct lpfc_vport *); | 75 | void lpfc_cleanup_discovery_resources(struct lpfc_vport *); |
78 | void lpfc_cleanup(struct lpfc_vport *); | 76 | void lpfc_cleanup(struct lpfc_vport *); |
79 | void lpfc_disc_timeout(unsigned long); | 77 | void lpfc_disc_timeout(unsigned long); |
80 | 78 | ||
81 | struct lpfc_nodelist *__lpfc_findnode_rpi(struct lpfc_vport *, uint16_t); | 79 | struct lpfc_nodelist *__lpfc_findnode_rpi(struct lpfc_vport *, uint16_t); |
82 | struct lpfc_nodelist *lpfc_findnode_rpi(struct lpfc_vport *, uint16_t); | ||
83 | 80 | ||
84 | void lpfc_worker_wake_up(struct lpfc_hba *); | 81 | void lpfc_worker_wake_up(struct lpfc_hba *); |
85 | int lpfc_workq_post_event(struct lpfc_hba *, void *, void *, uint32_t); | 82 | int lpfc_workq_post_event(struct lpfc_hba *, void *, void *, uint32_t); |
@@ -87,8 +84,6 @@ int lpfc_do_work(void *); | |||
87 | int lpfc_disc_state_machine(struct lpfc_vport *, struct lpfc_nodelist *, void *, | 84 | int lpfc_disc_state_machine(struct lpfc_vport *, struct lpfc_nodelist *, void *, |
88 | uint32_t); | 85 | uint32_t); |
89 | 86 | ||
90 | void lpfc_register_new_vport(struct lpfc_hba *, struct lpfc_vport *, | ||
91 | struct lpfc_nodelist *); | ||
92 | void lpfc_do_scr_ns_plogi(struct lpfc_hba *, struct lpfc_vport *); | 87 | void lpfc_do_scr_ns_plogi(struct lpfc_hba *, struct lpfc_vport *); |
93 | int lpfc_check_sparm(struct lpfc_vport *, struct lpfc_nodelist *, | 88 | int lpfc_check_sparm(struct lpfc_vport *, struct lpfc_nodelist *, |
94 | struct serv_parm *, uint32_t); | 89 | struct serv_parm *, uint32_t); |
@@ -99,7 +94,6 @@ int lpfc_els_chk_latt(struct lpfc_vport *); | |||
99 | int lpfc_els_abort_flogi(struct lpfc_hba *); | 94 | int lpfc_els_abort_flogi(struct lpfc_hba *); |
100 | int lpfc_initial_flogi(struct lpfc_vport *); | 95 | int lpfc_initial_flogi(struct lpfc_vport *); |
101 | int lpfc_initial_fdisc(struct lpfc_vport *); | 96 | int lpfc_initial_fdisc(struct lpfc_vport *); |
102 | int lpfc_issue_els_fdisc(struct lpfc_vport *, struct lpfc_nodelist *, uint8_t); | ||
103 | int lpfc_issue_els_plogi(struct lpfc_vport *, uint32_t, uint8_t); | 97 | int lpfc_issue_els_plogi(struct lpfc_vport *, uint32_t, uint8_t); |
104 | int lpfc_issue_els_prli(struct lpfc_vport *, struct lpfc_nodelist *, uint8_t); | 98 | int lpfc_issue_els_prli(struct lpfc_vport *, struct lpfc_nodelist *, uint8_t); |
105 | int lpfc_issue_els_adisc(struct lpfc_vport *, struct lpfc_nodelist *, uint8_t); | 99 | int lpfc_issue_els_adisc(struct lpfc_vport *, struct lpfc_nodelist *, uint8_t); |
@@ -119,7 +113,6 @@ int lpfc_els_rsp_prli_acc(struct lpfc_vport *, struct lpfc_iocbq *, | |||
119 | void lpfc_cancel_retry_delay_tmo(struct lpfc_vport *, struct lpfc_nodelist *); | 113 | void lpfc_cancel_retry_delay_tmo(struct lpfc_vport *, struct lpfc_nodelist *); |
120 | void lpfc_els_retry_delay(unsigned long); | 114 | void lpfc_els_retry_delay(unsigned long); |
121 | void lpfc_els_retry_delay_handler(struct lpfc_nodelist *); | 115 | void lpfc_els_retry_delay_handler(struct lpfc_nodelist *); |
122 | void lpfc_dev_loss_tmo_handler(struct lpfc_nodelist *); | ||
123 | void lpfc_els_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *, | 116 | void lpfc_els_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *, |
124 | struct lpfc_iocbq *); | 117 | struct lpfc_iocbq *); |
125 | int lpfc_els_handle_rscn(struct lpfc_vport *); | 118 | int lpfc_els_handle_rscn(struct lpfc_vport *); |
@@ -131,7 +124,6 @@ int lpfc_els_disc_adisc(struct lpfc_vport *); | |||
131 | int lpfc_els_disc_plogi(struct lpfc_vport *); | 124 | int lpfc_els_disc_plogi(struct lpfc_vport *); |
132 | void lpfc_els_timeout(unsigned long); | 125 | void lpfc_els_timeout(unsigned long); |
133 | void lpfc_els_timeout_handler(struct lpfc_vport *); | 126 | void lpfc_els_timeout_handler(struct lpfc_vport *); |
134 | void lpfc_hb_timeout(unsigned long); | ||
135 | void lpfc_hb_timeout_handler(struct lpfc_hba *); | 127 | void lpfc_hb_timeout_handler(struct lpfc_hba *); |
136 | 128 | ||
137 | void lpfc_ct_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *, | 129 | void lpfc_ct_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *, |
@@ -149,7 +141,6 @@ void lpfc_hba_init(struct lpfc_hba *, uint32_t *); | |||
149 | int lpfc_post_buffer(struct lpfc_hba *, struct lpfc_sli_ring *, int, int); | 141 | int lpfc_post_buffer(struct lpfc_hba *, struct lpfc_sli_ring *, int, int); |
150 | void lpfc_decode_firmware_rev(struct lpfc_hba *, char *, int); | 142 | void lpfc_decode_firmware_rev(struct lpfc_hba *, char *, int); |
151 | int lpfc_online(struct lpfc_hba *); | 143 | int lpfc_online(struct lpfc_hba *); |
152 | void lpfc_block_mgmt_io(struct lpfc_hba *); | ||
153 | void lpfc_unblock_mgmt_io(struct lpfc_hba *); | 144 | void lpfc_unblock_mgmt_io(struct lpfc_hba *); |
154 | void lpfc_offline_prep(struct lpfc_hba *); | 145 | void lpfc_offline_prep(struct lpfc_hba *); |
155 | void lpfc_offline(struct lpfc_hba *); | 146 | void lpfc_offline(struct lpfc_hba *); |
@@ -172,7 +163,6 @@ int lpfc_mbox_tmo_val(struct lpfc_hba *, int); | |||
172 | 163 | ||
173 | void lpfc_config_hbq(struct lpfc_hba *, uint32_t, struct lpfc_hbq_init *, | 164 | void lpfc_config_hbq(struct lpfc_hba *, uint32_t, struct lpfc_hbq_init *, |
174 | uint32_t , LPFC_MBOXQ_t *); | 165 | uint32_t , LPFC_MBOXQ_t *); |
175 | struct lpfc_hbq_entry * lpfc_sli_next_hbq_slot(struct lpfc_hba *, uint32_t); | ||
176 | struct hbq_dmabuf *lpfc_els_hbq_alloc(struct lpfc_hba *); | 166 | struct hbq_dmabuf *lpfc_els_hbq_alloc(struct lpfc_hba *); |
177 | void lpfc_els_hbq_free(struct lpfc_hba *, struct hbq_dmabuf *); | 167 | void lpfc_els_hbq_free(struct lpfc_hba *, struct hbq_dmabuf *); |
178 | 168 | ||
@@ -185,7 +175,6 @@ void lpfc_poll_start_timer(struct lpfc_hba * phba); | |||
185 | void lpfc_sli_poll_fcp_ring(struct lpfc_hba * hba); | 175 | void lpfc_sli_poll_fcp_ring(struct lpfc_hba * hba); |
186 | struct lpfc_iocbq * lpfc_sli_get_iocbq(struct lpfc_hba *); | 176 | struct lpfc_iocbq * lpfc_sli_get_iocbq(struct lpfc_hba *); |
187 | void lpfc_sli_release_iocbq(struct lpfc_hba * phba, struct lpfc_iocbq * iocb); | 177 | void lpfc_sli_release_iocbq(struct lpfc_hba * phba, struct lpfc_iocbq * iocb); |
188 | void __lpfc_sli_release_iocbq(struct lpfc_hba * phba, struct lpfc_iocbq * iocb); | ||
189 | uint16_t lpfc_sli_next_iotag(struct lpfc_hba * phba, struct lpfc_iocbq * iocb); | 178 | uint16_t lpfc_sli_next_iotag(struct lpfc_hba * phba, struct lpfc_iocbq * iocb); |
190 | 179 | ||
191 | void lpfc_reset_barrier(struct lpfc_hba * phba); | 180 | void lpfc_reset_barrier(struct lpfc_hba * phba); |
@@ -217,10 +206,8 @@ struct lpfc_dmabuf * lpfc_sli_ring_taggedbuf_get(struct lpfc_hba *, | |||
217 | struct lpfc_sli_ring *, uint32_t ); | 206 | struct lpfc_sli_ring *, uint32_t ); |
218 | 207 | ||
219 | int lpfc_sli_hbq_count(void); | 208 | int lpfc_sli_hbq_count(void); |
220 | int lpfc_sli_hbqbuf_init_hbqs(struct lpfc_hba *, uint32_t); | ||
221 | int lpfc_sli_hbqbuf_add_hbqs(struct lpfc_hba *, uint32_t); | 209 | int lpfc_sli_hbqbuf_add_hbqs(struct lpfc_hba *, uint32_t); |
222 | void lpfc_sli_hbqbuf_free_all(struct lpfc_hba *); | 210 | void lpfc_sli_hbqbuf_free_all(struct lpfc_hba *); |
223 | struct hbq_dmabuf *lpfc_sli_hbqbuf_find(struct lpfc_hba *, uint32_t); | ||
224 | int lpfc_sli_hbq_size(void); | 211 | int lpfc_sli_hbq_size(void); |
225 | int lpfc_sli_issue_abort_iotag(struct lpfc_hba *, struct lpfc_sli_ring *, | 212 | int lpfc_sli_issue_abort_iotag(struct lpfc_hba *, struct lpfc_sli_ring *, |
226 | struct lpfc_iocbq *); | 213 | struct lpfc_iocbq *); |
@@ -231,9 +218,6 @@ int lpfc_sli_abort_iocb(struct lpfc_vport *, struct lpfc_sli_ring *, uint16_t, | |||
231 | void lpfc_mbox_timeout(unsigned long); | 218 | void lpfc_mbox_timeout(unsigned long); |
232 | void lpfc_mbox_timeout_handler(struct lpfc_hba *); | 219 | void lpfc_mbox_timeout_handler(struct lpfc_hba *); |
233 | 220 | ||
234 | struct lpfc_nodelist *__lpfc_find_node(struct lpfc_vport *, node_filter, | ||
235 | void *); | ||
236 | struct lpfc_nodelist *lpfc_find_node(struct lpfc_vport *, node_filter, void *); | ||
237 | struct lpfc_nodelist *lpfc_findnode_did(struct lpfc_vport *, uint32_t); | 221 | struct lpfc_nodelist *lpfc_findnode_did(struct lpfc_vport *, uint32_t); |
238 | struct lpfc_nodelist *lpfc_findnode_wwpn(struct lpfc_vport *, | 222 | struct lpfc_nodelist *lpfc_findnode_wwpn(struct lpfc_vport *, |
239 | struct lpfc_name *); | 223 | struct lpfc_name *); |
@@ -294,11 +278,8 @@ extern void lpfc_debugfs_slow_ring_trc(struct lpfc_hba *, char *, uint32_t, | |||
294 | extern struct lpfc_hbq_init *lpfc_hbq_defs[]; | 278 | extern struct lpfc_hbq_init *lpfc_hbq_defs[]; |
295 | 279 | ||
296 | /* Interface exported by fabric iocb scheduler */ | 280 | /* Interface exported by fabric iocb scheduler */ |
297 | int lpfc_issue_fabric_iocb(struct lpfc_hba *, struct lpfc_iocbq *); | ||
298 | void lpfc_fabric_abort_vport(struct lpfc_vport *); | ||
299 | void lpfc_fabric_abort_nport(struct lpfc_nodelist *); | 281 | void lpfc_fabric_abort_nport(struct lpfc_nodelist *); |
300 | void lpfc_fabric_abort_hba(struct lpfc_hba *); | 282 | void lpfc_fabric_abort_hba(struct lpfc_hba *); |
301 | void lpfc_fabric_abort_flogi(struct lpfc_hba *); | ||
302 | void lpfc_fabric_block_timeout(unsigned long); | 283 | void lpfc_fabric_block_timeout(unsigned long); |
303 | void lpfc_unblock_fabric_iocbs(struct lpfc_hba *); | 284 | void lpfc_unblock_fabric_iocbs(struct lpfc_hba *); |
304 | void lpfc_adjust_queue_depth(struct lpfc_hba *); | 285 | void lpfc_adjust_queue_depth(struct lpfc_hba *); |