RDMA/cxgb4: Declare stag as __be32
authorLeon Romanovsky <[email protected]>
Wed, 25 Oct 2017 04:41:11 +0000 (07:41 +0300)
committerDoug Ledford <[email protected]>
Wed, 25 Oct 2017 19:25:00 +0000 (15:25 -0400)
The scqe.stag is actually __b32, fix it.

  drivers/infiniband/hw/cxgb4/cq.c:754:52: warning: cast to restricted __be32

Cc: Steve Wise <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Reviewed-by: Steve Wise <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/hw/cxgb4/t4.h

index 2b44fa850bbb5e3f29be3f2a8defcc15979596d7..427aaf20d77cb96111ff0c49313b2723cff11f8c 100644 (file)
@@ -171,7 +171,7 @@ struct t4_cqe {
                        __be32 msn;
                } rcqe;
                struct {
-                       u32 stag;
+                       __be32 stag;
                        u16 nada2;
                        u16 cidx;
                } scqe;