linux_dsm_epyc7002/drivers/infiniband/hw
Roland Dreier 71e0957c62 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>
2008-04-16 21:01:09 -07:00
..
amso1100 RDMA/amso1100: Endian annotate mqsq allocator 2008-04-16 21:01:08 -07:00
cxgb3 RDMA/cxgb3: IDR IDs are signed 2008-04-16 21:01:06 -07:00
ehca IB/ehca: Add PMA support 2008-02-04 20:20:42 -08:00
ipath IB/ipath: Fix sparse warning about shadowed symbol 2008-04-16 21:01:07 -07:00
mlx4 mlx4_core: Fix confusion between mlx4_event and mlx4_dev_event enums 2008-04-16 21:01:08 -07:00
mthca IB/mthca: Formatting cleanups 2008-04-16 21:01:03 -07:00
nes RDMA/nes: Use proper format and cast to print dma_addr_t 2008-04-16 21:01:09 -07:00