aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_mid.c
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2007-09-20 17:07:47 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:50:29 -0400
commit26ff776d1dd9147eb658c55f1df42c2c232036b5 (patch)
treea61b4d2548116fa5ef41e795225fd8b3571228da /drivers/scsi/qla2xxx/qla_mid.c
parent700ca0e7016008f65f75c2629e309fc03347c856 (diff)
[SCSI] qla2xxx: Sparse cleanups in qla_mid.c
Make several needlessly global functions static: - qla2x00_mark_vp_devices_dead() - qla24xx_configure_vp() Remove unused function qla24xx_modify_vport(). Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mid.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_mid.c34
1 files changed, 2 insertions, 32 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c
index 1a2cdcd915c..821ee74aadc 100644
--- a/drivers/scsi/qla2xxx/qla_mid.c
+++ b/drivers/scsi/qla2xxx/qla_mid.c
@@ -104,7 +104,7 @@ qla24xx_find_vhost_by_name(scsi_qla_host_t *ha, uint8_t *port_name)
104 * 104 *
105 * Context: 105 * Context:
106 */ 106 */
107void 107static void
108qla2x00_mark_vp_devices_dead(scsi_qla_host_t *vha) 108qla2x00_mark_vp_devices_dead(scsi_qla_host_t *vha)
109{ 109{
110 fc_port_t *fcport; 110 fc_port_t *fcport;
@@ -179,37 +179,7 @@ enable_failed:
179 return 1; 179 return 1;
180} 180}
181 181
182/** 182static void
183 * qla24xx_modify_vport() - Modifies the virtual fabric port's configuration
184 * @ha: HA context
185 * @vp: pointer to buffer of virtual port parameters.
186 * @ret_code: return error code:
187 *
188 * Returns the virtual port id, or MAX_VSAN_ID, if couldn't create.
189 */
190uint32_t
191qla24xx_modify_vhba(scsi_qla_host_t *ha, vport_params_t *vp, uint32_t *vp_id)
192{
193 scsi_qla_host_t *vha;
194
195 vha = qla24xx_find_vhost_by_name(ha, vp->port_name);
196 if (!vha) {
197 *vp_id = MAX_NUM_VPORT_LOOP;
198 return VP_RET_CODE_WWPN;
199 }
200
201 if (qla24xx_enable_vp(vha)) {
202 scsi_host_put(vha->host);
203 qla2x00_mem_free(vha);
204 *vp_id = MAX_NUM_VPORT_LOOP;
205 return VP_RET_CODE_RESOURCES;
206 }
207
208 *vp_id = vha->vp_idx;
209 return VP_RET_CODE_OK;
210}
211
212void
213qla24xx_configure_vp(scsi_qla_host_t *vha) 183qla24xx_configure_vp(scsi_qla_host_t *vha)
214{ 184{
215 struct fc_vport *fc_vport; 185 struct fc_vport *fc_vport;