]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
IB/hfi1: Remove unused mk_qpn function
authorIra Weiny <ira.weiny@intel.com>
Fri, 12 May 2017 16:19:47 +0000 (09:19 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 27 Jun 2017 20:56:33 +0000 (16:56 -0400)
Leftover function that is not used. Remove it.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/qp.c

index 650305cc037306923e5e742c02f7977e672a70f9..e91be05062e63c9dca036be118b1ecad1c3a935f 100644 (file)
@@ -73,12 +73,6 @@ static void iowait_wakeup(struct iowait *wait, int reason);
 static void iowait_sdma_drained(struct iowait *wait);
 static void qp_pio_drain(struct rvt_qp *qp);
 
-static inline unsigned mk_qpn(struct rvt_qpn_table *qpt,
-                             struct rvt_qpn_map *map, unsigned off)
-{
-       return (map - qpt->map) * RVT_BITS_PER_PAGE + off;
-}
-
 const struct rvt_operation_params hfi1_post_parms[RVT_OPERATION_MAX] = {
 [IB_WR_RDMA_WRITE] = {
        .length = sizeof(struct ib_rdma_wr),