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 <[email protected]>
---
 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);
        }
-- 
1.7.11.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to