aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/lpfc/lpfc_sli.c
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2019-03-20 20:02:04 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2019-03-20 20:03:47 -0400
commitc88725dd14da7356216db7d5fe4713a66d8b1a34 (patch)
tree5e61f198a967c31a5e43133158c960b86e611746 /drivers/scsi/lpfc/lpfc_sli.c
parent7512ddef63075605ecc25fee86940a1452fcbe49 (diff)
scsi: lpfc: Fix build error
You can't declare a function inline in a header if it doesn't have a body available to the compiler. So realistically you either don't declare it inline or you make it a static inline in the header. I think the latter applies in this case, so this should be the fix Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Acked-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_sli.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_sli.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index 6fc9ef888813..d6ea0c473ed7 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -14574,12 +14574,6 @@ out_fail:
return NULL;
}
-inline void *lpfc_sli4_qe(struct lpfc_queue *q, uint16_t idx)
-{
- return q->q_pgs[idx / q->entry_cnt_per_pg] +
- (q->entry_size * (idx % q->entry_cnt_per_pg));
-}
-
/**
* lpfc_dual_chute_pci_bar_map - Map pci base address register to host memory
* @phba: HBA structure that indicates port to create a queue on.