RDMA/cxgb4: Annotate r2 and stag as __be32
Subsystems (2)
PATCH 1/1 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>
--- drivers/infiniband/hw/cxgb4/t4fw_ri_api.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/cxgb4/t4fw_ri_api.h +2 -2
@@ -675,8 +675,8 @@ struct fw_ri_fr_nsmr_tpte_wr {__u16 wrid;__u8 r1[3 ];__u8 len16; -__u32 r2; -__u32 stag; +__be32 r2; +__be32 stag;struct fw_ri_tpte tpte;__u64 pbl[2 ]; };
--
2.14.2
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20171025201019.7367-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
Steve Wise
Reviewed-byQuoted 14 lines
Chelsio cxgb4 HW is big-endian, hence there is need to properly annotate r2 and stag fields as
__be32and not__u32to 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>
Quoted 2 lines
Cc Steve Wise <[email protected]>Signed-off-by Leon Romanovsky <[email protected]>
Looks fine. Thanks Leon!
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Doug Ledford
AppliedQuoted 14 lines · Steve Wise
Quoted 14 lines
Chelsio cxgb4 HW is big-endian, hence there is need to properly annotate r2 and stag fields as
__be32and not__u32to 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>
Quoted 7 lines
Quoted 2 lines
Cc Steve Wise <[email protected]>Signed-off-by Leon Romanovsky <[email protected]>Looks fine. Thanks Leon!
Reviewed-by Steve Wise <[email protected]>
Applied, thanks.
Signature · 3 lines
Doug Ledford <[email protected]> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD