• L
    RDMA/cxgb4: Annotate r2 and stag as __be32 · 7d7d065a
    Leon Romanovsky 提交于
    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: NLeon Romanovsky <leon@kernel.org>
    Reviewed-by: NSteve Wise <swise@opengridcomputing.com>
    Signed-off-by: NDoug Ledford <dledford@redhat.com>
    7d7d065a
t4fw_ri_api.h 22.2 KB