mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 09:34:17 +00:00
scsi: lpfc: fix build issue if NVME_FC_TARGET is not defined
fix build issue if NVME_FC_TARGET is not defined. noop the code. The code will never be invoked if target mode is not enabled. Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
53cf29d3b1
commit
eeeb51d834
@ -157,6 +157,7 @@ out:
|
|||||||
void
|
void
|
||||||
lpfc_nvmet_ctxbuf_post(struct lpfc_hba *phba, struct lpfc_nvmet_ctxbuf *ctx_buf)
|
lpfc_nvmet_ctxbuf_post(struct lpfc_hba *phba, struct lpfc_nvmet_ctxbuf *ctx_buf)
|
||||||
{
|
{
|
||||||
|
#if (IS_ENABLED(CONFIG_NVME_TARGET_FC))
|
||||||
struct lpfc_nvmet_rcv_ctx *ctxp = ctx_buf->context;
|
struct lpfc_nvmet_rcv_ctx *ctxp = ctx_buf->context;
|
||||||
struct lpfc_nvmet_tgtport *tgtp;
|
struct lpfc_nvmet_tgtport *tgtp;
|
||||||
struct fc_frame_header *fc_hdr;
|
struct fc_frame_header *fc_hdr;
|
||||||
@ -260,6 +261,7 @@ lpfc_nvmet_ctxbuf_post(struct lpfc_hba *phba, struct lpfc_nvmet_ctxbuf *ctx_buf)
|
|||||||
&phba->sli4_hba.lpfc_nvmet_ctx_list);
|
&phba->sli4_hba.lpfc_nvmet_ctx_list);
|
||||||
phba->sli4_hba.nvmet_ctx_cnt++;
|
phba->sli4_hba.nvmet_ctx_cnt++;
|
||||||
spin_unlock_irqrestore(&phba->sli4_hba.nvmet_io_lock, iflag);
|
spin_unlock_irqrestore(&phba->sli4_hba.nvmet_io_lock, iflag);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_SCSI_LPFC_DEBUG_FS
|
#ifdef CONFIG_SCSI_LPFC_DEBUG_FS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user