]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc79e3b62e76bbc8a733e3cd88740484993864466
tree51b4398f8054c932aac07f4688c9e4b8135d3e0e
parentd4f7b098e4c4e7d33b20a21c10124f4d22843b42
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