IB/mlx5: Fix warning about cast of wr_id back to pointer on 32 bits
[cascardo/linux.git] / drivers / infiniband / hw / mlx5 / mr.c
index 14ee4fd..afa873b 100644 (file)
@@ -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 *) (unsigned long) wc.wr_id;
                context->status = wc.status;
                complete(&context->done);
        }