mlx5: avoid build warnings on 32-bit
authorArnd Bergmann <arnd@arndb.de>
Tue, 13 Jan 2015 16:08:06 +0000 (17:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jan 2015 22:08:20 +0000 (17:08 -0500)
commit065bd8c28ba37d04c9a5b732173c1508954b1f58
tree74d212f696a130ffda9bc08ffc8b3208a82ee717
parentadedf37b5908de05256913875f1041e838994b49
mlx5: avoid build warnings on 32-bit

The mlx5 driver passes a string pointer in through a 'u64' variable,
which on 32-bit machines causes a build warning:

drivers/net/ethernet/mellanox/mlx5/core/debugfs.c: In function 'qp_read_field':
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:303:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

The code is in fact safe, so we can shut up the warning by adding
extra type casts.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c