]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Fix warning about cast of wr_id back to pointer on 32 bits
authorRoland Dreier <roland@purestorage.com>
Wed, 28 May 2014 16:23:03 +0000 (09:23 -0700)
committerRoland Dreier <roland@purestorage.com>
Wed, 28 May 2014 16:23:03 +0000 (09:23 -0700)
commitfdf3e0691ec8d92b86984d6d27f78aa7b81700f7
treea537dbc773a29d4312b4c0a26fa98f7fafce09ac
parent82f6180ccb7816c3eea717bfa5bf681194afff0b
IB/mlx5: Fix warning about cast of wr_id back to pointer on 32 bits

We need to cast wr_id to unsigned long before casting to a pointer.
This fixes:

       drivers/infiniband/hw/mlx5/mr.c: In function 'mlx5_umr_cq_handler':
    >> drivers/infiniband/hw/mlx5/mr.c:724:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
          context = (struct mlx5_ib_umr_context *)wc.wr_id;

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/mr.c