Commit 68ce1eb5 authored by Andrew Morton's avatar Andrew Morton Committed by James Bottomley

[SCSI] lpfc build fix

gcc-2.95.x doesn't do anonymous unions.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent a418500b
...@@ -973,10 +973,10 @@ lpfc_get_host_fabric_name (struct Scsi_Host *shost) ...@@ -973,10 +973,10 @@ lpfc_get_host_fabric_name (struct Scsi_Host *shost)
if ((phba->fc_flag & FC_FABRIC) || if ((phba->fc_flag & FC_FABRIC) ||
((phba->fc_topology == TOPOLOGY_LOOP) && ((phba->fc_topology == TOPOLOGY_LOOP) &&
(phba->fc_flag & FC_PUBLIC_LOOP))) (phba->fc_flag & FC_PUBLIC_LOOP)))
node_name = wwn_to_u64(phba->fc_fabparam.nodeName.wwn); node_name = wwn_to_u64(phba->fc_fabparam.nodeName.u.wwn);
else else
/* fabric is local port if there is no F/FL_Port */ /* fabric is local port if there is no F/FL_Port */
node_name = wwn_to_u64(phba->fc_nodename.wwn); node_name = wwn_to_u64(phba->fc_nodename.u.wwn);
spin_unlock_irq(shost->host_lock); spin_unlock_irq(shost->host_lock);
...@@ -1110,7 +1110,7 @@ lpfc_get_starget_node_name(struct scsi_target *starget) ...@@ -1110,7 +1110,7 @@ lpfc_get_starget_node_name(struct scsi_target *starget)
/* Search the mapped list for this target ID */ /* Search the mapped list for this target ID */
list_for_each_entry(ndlp, &phba->fc_nlpmap_list, nlp_listp) { list_for_each_entry(ndlp, &phba->fc_nlpmap_list, nlp_listp) {
if (starget->id == ndlp->nlp_sid) { if (starget->id == ndlp->nlp_sid) {
node_name = wwn_to_u64(ndlp->nlp_nodename.wwn); node_name = wwn_to_u64(ndlp->nlp_nodename.u.wwn);
break; break;
} }
} }
...@@ -1131,7 +1131,7 @@ lpfc_get_starget_port_name(struct scsi_target *starget) ...@@ -1131,7 +1131,7 @@ lpfc_get_starget_port_name(struct scsi_target *starget)
/* Search the mapped list for this target ID */ /* Search the mapped list for this target ID */
list_for_each_entry(ndlp, &phba->fc_nlpmap_list, nlp_listp) { list_for_each_entry(ndlp, &phba->fc_nlpmap_list, nlp_listp) {
if (starget->id == ndlp->nlp_sid) { if (starget->id == ndlp->nlp_sid) {
port_name = wwn_to_u64(ndlp->nlp_portname.wwn); port_name = wwn_to_u64(ndlp->nlp_portname.u.wwn);
break; break;
} }
} }
......
...@@ -1019,8 +1019,8 @@ lpfc_register_remote_port(struct lpfc_hba * phba, ...@@ -1019,8 +1019,8 @@ lpfc_register_remote_port(struct lpfc_hba * phba,
struct fc_rport_identifiers rport_ids; struct fc_rport_identifiers rport_ids;
/* Remote port has reappeared. Re-register w/ FC transport */ /* Remote port has reappeared. Re-register w/ FC transport */
rport_ids.node_name = wwn_to_u64(ndlp->nlp_nodename.wwn); rport_ids.node_name = wwn_to_u64(ndlp->nlp_nodename.u.wwn);
rport_ids.port_name = wwn_to_u64(ndlp->nlp_portname.wwn); rport_ids.port_name = wwn_to_u64(ndlp->nlp_portname.u.wwn);
rport_ids.port_id = ndlp->nlp_DID; rport_ids.port_id = ndlp->nlp_DID;
rport_ids.roles = FC_RPORT_ROLE_UNKNOWN; rport_ids.roles = FC_RPORT_ROLE_UNKNOWN;
if (ndlp->nlp_type & NLP_FCP_TARGET) if (ndlp->nlp_type & NLP_FCP_TARGET)
......
...@@ -280,9 +280,9 @@ struct lpfc_name { ...@@ -280,9 +280,9 @@ struct lpfc_name {
#define NAME_CCITT_GR_TYPE 0xE #define NAME_CCITT_GR_TYPE 0xE
uint8_t IEEEextLsb; /* FC Word 0, bit 16:23, IEEE extended Lsb */ uint8_t IEEEextLsb; /* FC Word 0, bit 16:23, IEEE extended Lsb */
uint8_t IEEE[6]; /* FC IEEE address */ uint8_t IEEE[6]; /* FC IEEE address */
}; } s;
uint8_t wwn[8]; uint8_t wwn[8];
}; } u;
}; };
struct csp { struct csp {
......
...@@ -285,7 +285,7 @@ lpfc_config_port_post(struct lpfc_hba * phba) ...@@ -285,7 +285,7 @@ lpfc_config_port_post(struct lpfc_hba * phba)
if (phba->SerialNumber[0] == 0) { if (phba->SerialNumber[0] == 0) {
uint8_t *outptr; uint8_t *outptr;
outptr = (uint8_t *) & phba->fc_nodename.IEEE[0]; outptr = &phba->fc_nodename.u.s.IEEE[0];
for (i = 0; i < 12; i++) { for (i = 0; i < 12; i++) {
status = *outptr++; status = *outptr++;
j = ((status & 0xf0) >> 4); j = ((status & 0xf0) >> 4);
...@@ -1523,8 +1523,8 @@ lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid) ...@@ -1523,8 +1523,8 @@ lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid)
* Must done after lpfc_sli_hba_setup() * Must done after lpfc_sli_hba_setup()
*/ */
fc_host_node_name(host) = wwn_to_u64(phba->fc_nodename.wwn); fc_host_node_name(host) = wwn_to_u64(phba->fc_nodename.u.wwn);
fc_host_port_name(host) = wwn_to_u64(phba->fc_portname.wwn); fc_host_port_name(host) = wwn_to_u64(phba->fc_portname.u.wwn);
fc_host_supported_classes(host) = FC_COS_CLASS3; fc_host_supported_classes(host) = FC_COS_CLASS3;
memset(fc_host_supported_fc4s(host), 0, memset(fc_host_supported_fc4s(host), 0,
......
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