Skip to content

Commit eb2463b

Browse files
KAGA-KOKOjgunthorpe
authored andcommitted
rdma/cxgb4: Fix SRQ endianness annotations
This patch avoids that sparse complains about casts to restricted __be32. Fixes: a3cdaa6 ("cxgb4: Adds CPL support for Shared Receive Queues") Signed-off-by: Bart Van Assche <[email protected]> Acked-by: Steve Wise <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 7810e09 commit eb2463b

File tree

2 files changed

+4
-3
lines changed
  • drivers

2 files changed

+4
-3
lines changed

drivers/infiniband/hw/cxgb4/cm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,8 @@ static int rx_data(struct c4iw_dev *dev, struct sk_buff *skb)
18531853
return 0;
18541854
}
18551855

1856-
static void complete_cached_srq_buffers(struct c4iw_ep *ep, u32 srqidx_status)
1856+
static void complete_cached_srq_buffers(struct c4iw_ep *ep,
1857+
__be32 srqidx_status)
18571858
{
18581859
enum chip_type adapter_type;
18591860
u32 srqidx;

drivers/net/ethernet/chelsio/cxgb4/t4_msg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ struct cpl_abort_req_rss {
755755
struct cpl_abort_req_rss6 {
756756
WR_HDR;
757757
union opcode_tid ot;
758-
__u32 srqidx_status;
758+
__be32 srqidx_status;
759759
};
760760

761761
#define ABORT_RSS_STATUS_S 0
@@ -785,7 +785,7 @@ struct cpl_abort_rpl_rss {
785785

786786
struct cpl_abort_rpl_rss6 {
787787
union opcode_tid ot;
788-
__u32 srqidx_status;
788+
__be32 srqidx_status;
789789
};
790790

791791
struct cpl_abort_rpl {

0 commit comments

Comments
 (0)