Commit 7d7d065a authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Doug Ledford

RDMA/cxgb4: Annotate r2 and stag as __be32

Chelsio cxgb4 HW is big-endian, hence there is need to properly
annotate r2 and stag fields as __be32 and not __u32 to fix the
following sparse warnings.

  drivers/infiniband/hw/cxgb4/qp.c:614:16:
    warning: incorrect type in assignment (different base types)
      expected unsigned int [unsigned] [usertype] r2
      got restricted __be32 [usertype] <noident>
  drivers/infiniband/hw/cxgb4/qp.c:615:18:
    warning: incorrect type in assignment (different base types)
      expected unsigned int [unsigned] [usertype] stag
      got restricted __be32 [usertype] <noident>

Cc: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Reviewed-by: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 108809a0
...@@ -675,8 +675,8 @@ struct fw_ri_fr_nsmr_tpte_wr { ...@@ -675,8 +675,8 @@ struct fw_ri_fr_nsmr_tpte_wr {
__u16 wrid; __u16 wrid;
__u8 r1[3]; __u8 r1[3];
__u8 len16; __u8 len16;
__u32 r2; __be32 r2;
__u32 stag; __be32 stag;
struct fw_ri_tpte tpte; struct fw_ri_tpte tpte;
__u64 pbl[2]; __u64 pbl[2];
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment