diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2017-10-11 10:49:00 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-10-14 20:47:06 -0400 |
commit | cc4ed08bc56ee42a7ade7602c242007c73a7c94b (patch) | |
tree | b76f531904cbdd01e79c6d25d1572aaf92ff34ee /drivers/infiniband/hw/hns/hns_roce_hw_v2.c | |
parent | IB/hfi1: Define hfi1_handle_cnp_tbl[] once (diff) | |
download | linux-dev-cc4ed08bc56ee42a7ade7602c242007c73a7c94b.tar.xz linux-dev-cc4ed08bc56ee42a7ade7602c242007c73a7c94b.zip |
IB/hns: Annotate iomem pointers correctly
This patch avoids that sparse complains that there is an address
space mismatch.
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Lijun Ou <oulijun@huawei.com>
Cc: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Cc: Shaobo Xu <xushaobo2@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index b99d70aa1120..ff61f30a82c2 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -976,7 +976,8 @@ static int hns_roce_v2_post_mbox(struct hns_roce_dev *hr_dev, u64 in_param, u16 op, u16 token, int event) { struct device *dev = hr_dev->dev; - u32 *hcr = (u32 *)(hr_dev->reg_base + ROCEE_VF_MB_CFG0_REG); + u32 __iomem *hcr = (u32 __iomem *)(hr_dev->reg_base + + ROCEE_VF_MB_CFG0_REG); unsigned long end; u32 val0 = 0; u32 val1 = 0; |