Commit 26ff776d authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley

[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: default avatarAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 700ca0e7
...@@ -104,7 +104,7 @@ qla24xx_find_vhost_by_name(scsi_qla_host_t *ha, uint8_t *port_name) ...@@ -104,7 +104,7 @@ qla24xx_find_vhost_by_name(scsi_qla_host_t *ha, uint8_t *port_name)
* *
* Context: * Context:
*/ */
void static void
qla2x00_mark_vp_devices_dead(scsi_qla_host_t *vha) qla2x00_mark_vp_devices_dead(scsi_qla_host_t *vha)
{ {
fc_port_t *fcport; fc_port_t *fcport;
...@@ -179,37 +179,7 @@ qla24xx_enable_vp(scsi_qla_host_t *vha) ...@@ -179,37 +179,7 @@ qla24xx_enable_vp(scsi_qla_host_t *vha)
return 1; return 1;
} }
/** static void
* qla24xx_modify_vport() - Modifies the virtual fabric port's configuration
* @ha: HA context
* @vp: pointer to buffer of virtual port parameters.
* @ret_code: return error code:
*
* Returns the virtual port id, or MAX_VSAN_ID, if couldn't create.
*/
uint32_t
qla24xx_modify_vhba(scsi_qla_host_t *ha, vport_params_t *vp, uint32_t *vp_id)
{
scsi_qla_host_t *vha;
vha = qla24xx_find_vhost_by_name(ha, vp->port_name);
if (!vha) {
*vp_id = MAX_NUM_VPORT_LOOP;
return VP_RET_CODE_WWPN;
}
if (qla24xx_enable_vp(vha)) {
scsi_host_put(vha->host);
qla2x00_mem_free(vha);
*vp_id = MAX_NUM_VPORT_LOOP;
return VP_RET_CODE_RESOURCES;
}
*vp_id = vha->vp_idx;
return VP_RET_CODE_OK;
}
void
qla24xx_configure_vp(scsi_qla_host_t *vha) qla24xx_configure_vp(scsi_qla_host_t *vha)
{ {
struct fc_vport *fc_vport; struct fc_vport *fc_vport;
......
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