From: Arnd Bergmann Date: Tue, 13 Jan 2015 16:08:06 +0000 (+0100) Subject: mlx5: avoid build warnings on 32-bit X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~233 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=065bd8c28ba37d04c9a5b732173c1508954b1f58;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed