RDMA/cxgb4: Fix gcc warning on 32-bit arch
authorPaul Bolle <pebolle@tiscali.nl>
Thu, 9 Jan 2014 10:53:27 +0000 (11:53 +0100)
committerRoland Dreier <roland@purestorage.com>
Thu, 23 Jan 2014 07:07:09 +0000 (23:07 -0800)
commit298589b1cb626adf4beba6dd8e3cd4b64e8799be
tree6c091ce1c40a6a60f5f93676c0141cde1ddfc2e1
parent7e22e91102c6b9df7c4ae2168910e19d2bb14cd6
RDMA/cxgb4: Fix gcc warning on 32-bit arch

Building mem.o for 32 bits x86 triggers a GCC warning:

    drivers/infiniband/hw/cxgb4/mem.c: In function '_c4iw_write_mem_dma_aligned':
    drivers/infiniband/hw/cxgb4/mem.c:79:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

Silence that warning by casting "&wr_wait" to unsigned long before
casting it to __be64.  That's what _c4iw_write_mem_inline() already does.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/mem.c