From patchwork Tue Jul 31 15:25:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10550919 X-Patchwork-Delegate: jgg@ziepe.ca Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C177515E2 for ; Tue, 31 Jul 2018 15:25:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABF9B2B0BE for ; Tue, 31 Jul 2018 15:25:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9EA492B13D; Tue, 31 Jul 2018 15:25:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25BD32B0BE for ; Tue, 31 Jul 2018 15:25:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732337AbeGaRGb (ORCPT ); Tue, 31 Jul 2018 13:06:31 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:64286 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732269AbeGaRGb (ORCPT ); Tue, 31 Jul 2018 13:06:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1533050742; x=1564586742; h=from:to:cc:subject:date:message-id; bh=7Wqr6v1uAJv+7Y5F7kcqJfG1ma2VB1kSxZzy1yhh3Yk=; b=fnnLTZBr6j95yn33Fq51hVKGSZokg1xRf/VYwO6LZaTgDNm6SCye3TIT Xxwws5PafaWFu64jyF8ABFB+fEiEzTXZ89N2GpNJBqGKh/buZiAW1DYRP b75eASVf5blHlvMDAAu6TGzWiDnqnQKv9nVA5nl+e2FPYVmXezOH7++rV CsV+7tZCM5aE94QgWnQBTbbaI71c5UB8mKw5kcAb7m5ic0Rvcamt5MHii 28kEEuF0GfpCFhbRnfm6lNblwTDm9bZ97DjrOt5zW1TftCpN70oDyKWTY +HyHD+Im4cr2IssxGrnJbO8JhSWzbFHnzl2q8GQwhKjCjaZtVbhVHVFzg g==; X-IronPort-AV: E=Sophos;i="5.51,427,1526313600"; d="scan'208";a="85638726" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 31 Jul 2018 23:25:41 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP; 31 Jul 2018 08:14:08 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip01.wdc.com with ESMTP; 31 Jul 2018 08:25:42 -0700 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche , Steve Wise , Raju Rangoju Subject: [PATCH] rdma/cxgb4: Fix SRQ endianness annotations Date: Tue, 31 Jul 2018 08:25:41 -0700 Message-Id: <20180731152541.12554-1-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.18.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Cc: Steve Wise Cc: Raju Rangoju Acked-by: Steve Wise --- drivers/infiniband/hw/cxgb4/cm.c | 3 ++- drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 {