diff options
author | Roland Dreier <rolandd@cisco.com> | 2008-04-17 04:01:09 (GMT) |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-17 04:01:09 (GMT) |
commit | 71e0957c6291da030e6f89351846225876731df3 (patch) | |
tree | 4e3116aa86e767865ba2d862c0352cd7c33d9ac2 /drivers/infiniband/hw/nes/nes.c | |
parent | 9d84ab9c7e82e7b6b9f8c25794f64f65d021c8fd (diff) | |
download | linux-71e0957c6291da030e6f89351846225876731df3.tar.xz |
RDMA/nes: Use proper format and cast to print dma_addr_t
On some platforms, eg sparc64, dma_addr_t is not the same size as a
pointer, so printing dma_addr_t values by casting to void * and using
a %p format generates warnings. Fix this by casting to unsigned long
and using %lx instead. This fixes the warnings:
drivers/infiniband/hw/nes/nes_verbs.c: In function 'nes_setup_virt_qp':
drivers/infiniband/hw/nes/nes_verbs.c:1047: warning: cast to pointer from integer of different size
drivers/infiniband/hw/nes/nes_verbs.c:1078: warning: cast to pointer from integer of different size
drivers/infiniband/hw/nes/nes_verbs.c:1078: warning: cast to pointer from integer of different size
drivers/infiniband/hw/nes/nes_verbs.c: In function 'nes_reg_user_mr':
drivers/infiniband/hw/nes/nes_verbs.c:2657: warning: cast to pointer from integer of different size
Reported by Andrew Morton <akpm@linux-foundation.org>.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes.c')
0 files changed, 0 insertions, 0 deletions