scsi: lpfc: Fix warning messages when NVME_TARGET_FC not defined
authorDick Kennedy <dick.kennedy@broadcom.com>
Sat, 30 Sep 2017 00:34:31 +0000 (17:34 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 3 Oct 2017 02:46:34 +0000 (22:46 -0400)
commit2299e4323d2bf6e0728fdc6b9e8e9704978d2dd7
tree51b4398f8054c932aac07f4688c9e4b8135d3e0e
parent2b75d0f93451bc6e11cf9af06e1bf770222c271d
scsi: lpfc: Fix warning messages when NVME_TARGET_FC not defined

Warning messages when NVME_TARGET_FC not defined on ppc builds

The lpfc_nvmet_replenish_context() function is only meaningful when NVME
target mode enabled. Surround the function body with ifdefs for target
mode enablement.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvmet.c