diff mbox series

rdma/cxgb4: Fix SRQ endianness annotations

Message ID 20180731152541.12554-1-bart.vanassche@wdc.com (mailing list archive)
State Accepted
Delegated to: Jason Gunthorpe
Headers show
Series rdma/cxgb4: Fix SRQ endianness annotations | expand

Commit Message

Bart Van Assche July 31, 2018, 3:25 p.m. UTC
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>
Cc: Steve Wise <swise@opengridcomputing.com>
Cc: Raju Rangoju <rajur@chelsio.com>
---
 drivers/infiniband/hw/cxgb4/cm.c            | 3 ++-
 drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

Comments

Steve Wise July 31, 2018, 3:30 p.m. UTC | #1
On 7/31/2018 10:25 AM, Bart Van Assche wrote:
> 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>
> Cc: Steve Wise <swise@opengridcomputing.com>
> Cc: Raju Rangoju <rajur@chelsio.com>
> ---
>  drivers/infiniband/hw/cxgb4/cm.c            | 3 ++-
>  drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 4 ++--
>  2 files changed, 4 insertions(+), 3 deletions(-)
>
>
Acked-by: Steve Wise <swise@opengridcomputing.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jason Gunthorpe July 31, 2018, 10:59 p.m. UTC | #2
On Tue, Jul 31, 2018 at 08:25:41AM -0700, Bart Van Assche wrote:
> 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>
> Cc: Steve Wise <swise@opengridcomputing.com>
> Cc: Raju Rangoju <rajur@chelsio.com>
> Acked-by: Steve Wise <swise@opengridcomputing.com>
> ---
>  drivers/infiniband/hw/cxgb4/cm.c            | 3 ++-
>  drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 4 ++--
>  2 files changed, 4 insertions(+), 3 deletions(-)

Applied to for-next

Thanks,
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index d7cfa38baad2..9e1463080c22 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -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;
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_msg.h b/drivers/net/ethernet/chelsio/cxgb4/t4_msg.h
index 09e38f0733bd..b8f75a22fb6c 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/t4_msg.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/t4_msg.h
@@ -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 {