rdma/cxgb4: Fix SRQ endianness annotations
authorBart Van Assche <bart.vanassche@wdc.com>
Tue, 31 Jul 2018 15:25:41 +0000 (08:25 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 31 Jul 2018 22:57:23 +0000 (16:57 -0600)
This patch avoids that sparse complains about casts to restricted __be32.

Fixes: a3cdaa69e4ae ("cxgb4: Adds CPL support for Shared Receive Queues")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/cm.c
drivers/net/ethernet/chelsio/cxgb4/t4_msg.h

index d7cfa38baad2e94d036a6b9203c0d956c737ad00..9e1463080c22ca147cff3ca30fe90aaffdefd5db 100644 (file)
@@ -1853,7 +1853,8 @@ static int rx_data(struct c4iw_dev *dev, struct sk_buff *skb)
        return 0;
 }
 
-static void complete_cached_srq_buffers(struct c4iw_ep *ep, u32 srqidx_status)
+static void complete_cached_srq_buffers(struct c4iw_ep *ep,
+                                       __be32 srqidx_status)
 {
        enum chip_type adapter_type;
        u32 srqidx;
index 09e38f0733bdfdc39fe5968c233175e1851d972f..b8f75a22fb6c97183d89c97f7ce2a9f0cd5ead5d 100644 (file)
@@ -755,7 +755,7 @@ struct cpl_abort_req_rss {
 struct cpl_abort_req_rss6 {
        WR_HDR;
        union opcode_tid ot;
-       __u32 srqidx_status;
+       __be32 srqidx_status;
 };
 
 #define ABORT_RSS_STATUS_S    0
@@ -785,7 +785,7 @@ struct cpl_abort_rpl_rss {
 
 struct cpl_abort_rpl_rss6 {
        union opcode_tid ot;
-       __u32 srqidx_status;
+       __be32 srqidx_status;
 };
 
 struct cpl_abort_rpl {