diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_nvme.c')
| -rw-r--r-- | drivers/scsi/lpfc/lpfc_nvme.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/lpfc/lpfc_nvme.c b/drivers/scsi/lpfc/lpfc_nvme.c index 0a4c19081409..0024de1c6c1f 100644 --- a/drivers/scsi/lpfc/lpfc_nvme.c +++ b/drivers/scsi/lpfc/lpfc_nvme.c | |||
| @@ -2149,7 +2149,7 @@ lpfc_nvme_create_localport(struct lpfc_vport *vport) | |||
| 2149 | /* localport is allocated from the stack, but the registration | 2149 | /* localport is allocated from the stack, but the registration |
| 2150 | * call allocates heap memory as well as the private area. | 2150 | * call allocates heap memory as well as the private area. |
| 2151 | */ | 2151 | */ |
| 2152 | #ifdef CONFIG_LPFC_NVME_INITIATOR | 2152 | #if (IS_ENABLED(CONFIG_NVME_FC)) |
| 2153 | ret = nvme_fc_register_localport(&nfcp_info, &lpfc_nvme_template, | 2153 | ret = nvme_fc_register_localport(&nfcp_info, &lpfc_nvme_template, |
| 2154 | &vport->phba->pcidev->dev, &localport); | 2154 | &vport->phba->pcidev->dev, &localport); |
| 2155 | #else | 2155 | #else |
| @@ -2190,7 +2190,7 @@ lpfc_nvme_create_localport(struct lpfc_vport *vport) | |||
| 2190 | void | 2190 | void |
| 2191 | lpfc_nvme_destroy_localport(struct lpfc_vport *vport) | 2191 | lpfc_nvme_destroy_localport(struct lpfc_vport *vport) |
| 2192 | { | 2192 | { |
| 2193 | #ifdef CONFIG_LPFC_NVME_INITIATOR | 2193 | #if (IS_ENABLED(CONFIG_NVME_FC)) |
| 2194 | struct nvme_fc_local_port *localport; | 2194 | struct nvme_fc_local_port *localport; |
| 2195 | struct lpfc_nvme_lport *lport; | 2195 | struct lpfc_nvme_lport *lport; |
| 2196 | struct lpfc_nvme_rport *rport = NULL, *rport_next = NULL; | 2196 | struct lpfc_nvme_rport *rport = NULL, *rport_next = NULL; |
| @@ -2274,7 +2274,7 @@ lpfc_nvme_update_localport(struct lpfc_vport *vport) | |||
| 2274 | int | 2274 | int |
| 2275 | lpfc_nvme_register_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) | 2275 | lpfc_nvme_register_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) |
| 2276 | { | 2276 | { |
| 2277 | #ifdef CONFIG_LPFC_NVME_INITIATOR | 2277 | #if (IS_ENABLED(CONFIG_NVME_FC)) |
| 2278 | int ret = 0; | 2278 | int ret = 0; |
| 2279 | struct nvme_fc_local_port *localport; | 2279 | struct nvme_fc_local_port *localport; |
| 2280 | struct lpfc_nvme_lport *lport; | 2280 | struct lpfc_nvme_lport *lport; |
| @@ -2403,7 +2403,7 @@ lpfc_nvme_register_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) | |||
| 2403 | void | 2403 | void |
| 2404 | lpfc_nvme_unregister_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) | 2404 | lpfc_nvme_unregister_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) |
| 2405 | { | 2405 | { |
| 2406 | #ifdef CONFIG_LPFC_NVME_INITIATOR | 2406 | #if (IS_ENABLED(CONFIG_NVME_FC)) |
| 2407 | int ret; | 2407 | int ret; |
| 2408 | struct nvme_fc_local_port *localport; | 2408 | struct nvme_fc_local_port *localport; |
| 2409 | struct lpfc_nvme_lport *lport; | 2409 | struct lpfc_nvme_lport *lport; |
