From patchwork Thu May 29 05:43:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haggai Eran X-Patchwork-Id: 4261161 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E798ABF90B for ; Thu, 29 May 2014 05:44:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3894020165 for ; Thu, 29 May 2014 05:44:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C3302015E for ; Thu, 29 May 2014 05:44:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751971AbaE2For (ORCPT ); Thu, 29 May 2014 01:44:47 -0400 Received: from mailp.voltaire.com ([193.47.165.129]:36883 "EHLO mellanox.co.il" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751950AbaE2Foq (ORCPT ); Thu, 29 May 2014 01:44:46 -0400 Received: from Internal Mail-Server by MTLPINE2 (envelope-from haggaie@mellanox.com) with SMTP; 29 May 2014 08:44:42 +0300 Received: from gen-l-vrt-034.mtl.labs.mlnx (gen-l-vrt-034.mtl.labs.mlnx [10.137.34.1]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id s4T5iflh011631; Thu, 29 May 2014 08:44:42 +0300 From: Haggai Eran To: Roland Dreier Cc: Shachar Raindel , Or Gerlitz , linux-rdma@vger.kernel.org, Haggai Eran Subject: [PATCH for-next] IB/mlx5: fix compiler warning when casting UMR context from wr_id Date: Thu, 29 May 2014 08:43:59 +0300 Message-Id: <1401342239-30679-1-git-send-email-haggaie@mellanox.com> X-Mailer: git-send-email 1.7.11.2 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 The patch "IB/mlx5: Refactor UMR to have its own context struct" introduced a compiler warning when compiling under 32-bit architectures. This patch fixes that warning. Signed-off-by: Haggai Eran --- drivers/infiniband/hw/mlx5/mr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c index 14ee4fd..da3d635 100644 --- a/drivers/infiniband/hw/mlx5/mr.c +++ b/drivers/infiniband/hw/mlx5/mr.c @@ -721,7 +721,7 @@ void mlx5_umr_cq_handler(struct ib_cq *cq, void *cq_context) if (err == 0) break; - context = (struct mlx5_ib_umr_context *)wc.wr_id; + context = (struct mlx5_ib_umr_context *)(uintptr_t)wc.wr_id; context->status = wc.status; complete(&context->done); }