[PATCH] mlx5: avoid build warnings on 32-bit

2015-01-13 Thread Arnd Bergmann
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

Re: [PATCH] mlx5: avoid build warnings on 32-bit

2015-01-13 Thread Eli Cohen
On Tue, Jan 13, 2015 at 05:08:06PM +0100, Arnd Bergmann wrote: Hi Arnd, wouldn't it work by casting to uintptr_t instead of unsigned long? The mlx5 driver passes a string pointer in through a 'u64' variable, which on 32-bit machines causes a build warning:

Re: [PATCH] mlx5: avoid build warnings on 32-bit

2015-01-13 Thread Arnd Bergmann
On Tuesday 13 January 2015 18:28:03 Eli Cohen wrote: On Tue, Jan 13, 2015 at 05:08:06PM +0100, Arnd Bergmann wrote: Hi Arnd, wouldn't it work by casting to uintptr_t instead of unsigned long? These are the same on all architectures that Linux can run on, but if you have a strong

Re: [PATCH] mlx5: avoid build warnings on 32-bit

2015-01-13 Thread David Miller
From: Arnd Bergmann a...@arndb.de Date: Tue, 13 Jan 2015 17:08:06 +0100 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':