Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux...
[linux-2.6-microblaze.git] / drivers / infiniband / hw / hns / hns_roce_mr.c
index 0e71ebe..6b226a5 100644 (file)
@@ -120,7 +120,7 @@ static int alloc_mr_pbl(struct hns_roce_dev *hr_dev, struct hns_roce_mr *mr,
 
        mr->pbl_hop_num = is_fast ? 1 : hr_dev->caps.pbl_hop_num;
        buf_attr.page_shift = is_fast ? PAGE_SHIFT :
-                             hr_dev->caps.pbl_buf_pg_sz + HNS_HW_PAGE_SHIFT;
+                             hr_dev->caps.pbl_buf_pg_sz + PAGE_SHIFT;
        buf_attr.region[0].size = length;
        buf_attr.region[0].hopnum = mr->pbl_hop_num;
        buf_attr.region_count = 1;