]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix a recently introduced compiler warning
authorBart Van Assche <bvanassche@acm.org>
Fri, 5 Apr 2019 16:14:10 +0000 (09:14 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 Apr 2019 01:26:11 +0000 (21:26 -0400)
commit7782b1b69e348b69c2ac65469e7499e51b49d1b3
tree3e76a3fdc9b03e24c3a35639856ad3673fc419d0
parentb6ad56328bf925b1c9155325dd69dfdd187c216e
scsi: lpfc: Fix a recently introduced compiler warning

This patch avoids that the following compiler warning is reported with
CONFIG_NVME_FC=n:

drivers/scsi/lpfc/lpfc_nvme.c:2140:1: warning: 'lpfc_nvme_lport_unreg_wait' defined but not used [-Wunused-function]
 lpfc_nvme_lport_unreg_wait(struct lpfc_vport *vport,
 ^~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: f8ed7d3d9113 ("scsi: lpfc: Declare local functions static")
Cc: James Smart <james.smart@broadcom.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvme.c