]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
RDMA/nes: Fix cast-to-pointer warnings on 32-bit
authorRoland Dreier <rolandd@cisco.com>
Tue, 28 Sep 2010 00:51:33 +0000 (17:51 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 28 Sep 2010 00:51:33 +0000 (17:51 -0700)
commit183ae74bda75b1cfda632b42cdc916853e2dded4
treed4ce84571a31a81929981494e32142d09d13f1b2
parent252a52aa4fa22a668f019e55b3aac3ff71ec1c29
RDMA/nes: Fix cast-to-pointer warnings on 32-bit

Fix:

  drivers/infiniband/hw/nes/nes_verbs.c: In function 'nes_alloc_fast_reg_page_list':
  drivers/infiniband/hw/nes/nes_verbs.c:477: warning: cast to pointer from integer of different size
  drivers/infiniband/hw/nes/nes_verbs.c: In function 'nes_post_send':
  drivers/infiniband/hw/nes/nes_verbs.c:3486: warning: cast to pointer from integer of different size
  drivers/infiniband/hw/nes/nes_verbs.c:3486: warning: cast to pointer from integer of different size

by printing u64 quantities by casting to unsigned long and long and
using %llx, rather than casting to void* and using %p.

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_verbs.c