From patchwork Wed Oct 7 12:10:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 7344691 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7B5C59F443 for ; Wed, 7 Oct 2015 12:10:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 839822073B for ; Wed, 7 Oct 2015 12:10:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6CACC2071B for ; Wed, 7 Oct 2015 12:10:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751196AbbJGMKV (ORCPT ); Wed, 7 Oct 2015 08:10:21 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:63898 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751054AbbJGMKU (ORCPT ); Wed, 7 Oct 2015 08:10:20 -0400 Received: from wuerfel.localnet ([149.172.15.242]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MDPKv-1Zp4L53r25-00Gplo; Wed, 07 Oct 2015 14:10:07 +0200 From: Arnd Bergmann To: Steve Wise Cc: Doug Ledford , Sean Hefty , Hal Rosenstock , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] RDMA/cxgb4: re-fix 32-bit build warning Date: Wed, 07 Oct 2015 14:10:04 +0200 Message-ID: <13543971.LQ3Q8CCxhL@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:4x3k3NurXLU6ppHRAohXUzxX9T9A9guA/1RANSqA9YnmTg2k9oa Fk4eenw5LXbu/19+66lvyNEzQDqt3qoK+OsD6TODzqY31E2YRaNQaTfweDlYpw+hyBRZg5P NcpeDT5H6pD68ELJOAygj7upnmLcqfz8btCDJphjog+Jk5qYP3D51iq2NnzP8FAE9gZvSW8 AUF6tU9xur70/fHttaM4w== X-UI-Out-Filterresults: notjunk:1; V01:K0:U8VHHdBxK1w=:VXgnnhc0MJYSeD71Az3qGp Nfrg/1bL4HOPrSzDpHdFZbuj8Z93REF5pCmeYh1ejY9qYRc1s2bw4+nEw++HHLStbmPGs8JXu AawoV6F0MdyZAtLs18z8WFLjSh56ELWnU6EgecG1GCa1o7SEwIp8I4zHqsrEEUaABykWecY58 NBwQonftjmHYIzcSZUobwb+vmsACKk9Q1gDq4iDLimqz7ATuQ/cJ9ZE7VsluxR+RXnSHMjk7J VygCyCuL0Mu1G840O0iEt9d6WR+A88X/APRDZwK7/1i0NUMj2nN6gYgvsFL9t55+Th0dLlNXC o08d4uQLpMh+l/qbMnlEoQqr/tmK+cGwZKNk2sJXMp/afQUAlMnBvf6YezMeGgoXY5dtbHsRN NsU+jYI2qx27+pVZQ8XD4HNb9frGC4ltV8G0mWiVGAXRnFnzbxChSl+h4N+YPiOa5ewRoO00P IT/VKsmGEz5u9fpQ+sVN7R9x7onwe80jQcxGoQOag+5FQM2hxwJC7B9FwClX5ylGdEWGLMZaU Gun56UajQIHiH4yPW/jt+zLzhEtL6koFk+95bfIJ97gWZqe+H1N4fLrMfRCE0tMx27OR0HBwX jhmEY3UB6/l1N/j6mwl5OCTLcNRLjg/tG4guLT/IFRhT3jIQT7M3KnBsmLF3xJ8RviqURtEGY zfUDWizk3JhxAluROKw9ooXbTb89PTncdKqiwkrx4SDNoTVMqwtBLmeY2QSWjhS4PTBEwWr5M /fFJk5cBJtYJLQRy Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Casting a pointer to __be64 produces a warning on 32-bit architectures: drivers/infiniband/hw/cxgb4/mem.c:147:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] req->wr.wr_lo = (__force __be64)&wr_wait; This was fixed at least twice for this driver in different places, and accidentally reverted once more. This puts the correct version back in place. Signed-off-by: Arnd Bergmann Fixes: 6198dd8d7a6a7 ("iw_cxgb4: 32b platform fixes") --- 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 --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c index 026b91ebd5e2..140415d31bcc 100644 --- a/drivers/infiniband/hw/cxgb4/mem.c +++ b/drivers/infiniband/hw/cxgb4/mem.c @@ -144,7 +144,7 @@ static int _c4iw_write_mem_inline(struct c4iw_rdev *rdev, u32 addr, u32 len, if (i == (num_wqe-1)) { req->wr.wr_hi = cpu_to_be32(FW_WR_OP_V(FW_ULPTX_WR) | FW_WR_COMPL_F); - req->wr.wr_lo = (__force __be64)&wr_wait; + req->wr.wr_lo = (__force __be64)(unsigned long)&wr_wait; } else req->wr.wr_hi = cpu_to_be32(FW_WR_OP_V(FW_ULPTX_WR)); req->wr.wr_mid = cpu_to_be32(