diff options
author | Weihang Li <liweihang@huawei.com> | 2020-05-20 21:53:16 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-05-25 14:02:12 -0300 |
commit | 82d07a4e466fa2e3cc0ac5479beeb739abaa7438 (patch) | |
tree | 025e9644cb9499e9ba2af17b2f1112d4c3623f7e /drivers/infiniband/hw/hns/hns_roce_alloc.c | |
parent | RDMA/hns: Rename QP buffer related function (diff) | |
download | linux-dev-82d07a4e466fa2e3cc0ac5479beeb739abaa7438.tar.xz linux-dev-82d07a4e466fa2e3cc0ac5479beeb739abaa7438.zip |
RDMA/hns: Change all page_shift to unsigned
page_shift is used to calculate the page size, it's always non-negative,
and should be in type of unsigned.
Link: https://lore.kernel.org/r/1589982799-28728-7-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_alloc.c')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_alloc.c b/drivers/infiniband/hw/hns/hns_roce_alloc.c index 742aee846676..a522cb2d29ea 100644 --- a/drivers/infiniband/hw/hns/hns_roce_alloc.c +++ b/drivers/infiniband/hw/hns/hns_roce_alloc.c @@ -254,7 +254,7 @@ int hns_roce_get_kmem_bufs(struct hns_roce_dev *hr_dev, dma_addr_t *bufs, int hns_roce_get_umem_bufs(struct hns_roce_dev *hr_dev, dma_addr_t *bufs, int buf_cnt, int start, struct ib_umem *umem, - int page_shift) + unsigned int page_shift) { struct ib_block_iter biter; int total = 0; |