diff options
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_provider.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_provider.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_provider.c b/drivers/infiniband/hw/mthca/mthca_provider.c index 21422a3336ad..7ec7c4b937f9 100644 --- a/drivers/infiniband/hw/mthca/mthca_provider.c +++ b/drivers/infiniband/hw/mthca/mthca_provider.c | |||
@@ -124,7 +124,7 @@ static int mthca_query_device(struct ib_device *ibdev, | |||
124 | props->max_map_per_fmr = 255; | 124 | props->max_map_per_fmr = 255; |
125 | else | 125 | else |
126 | props->max_map_per_fmr = | 126 | props->max_map_per_fmr = |
127 | (1 << (32 - long_log2(mdev->limits.num_mpts))) - 1; | 127 | (1 << (32 - ilog2(mdev->limits.num_mpts))) - 1; |
128 | 128 | ||
129 | err = 0; | 129 | err = 0; |
130 | out: | 130 | out: |
@@ -816,7 +816,7 @@ static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *uda | |||
816 | lkey = ucmd.lkey; | 816 | lkey = ucmd.lkey; |
817 | } | 817 | } |
818 | 818 | ||
819 | ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, long_log2(entries), &status); | 819 | ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries), &status); |
820 | if (status) | 820 | if (status) |
821 | ret = -EINVAL; | 821 | ret = -EINVAL; |
822 | 822 | ||