[PATCH] infiniband: mlx5: avoid a compile-time warning

2015-01-13 Thread Arnd Bergmann
The return type of find_first_bit() is architecture specific, on ARM it is 'unsigned int', while the asm-generic code used on x86 and a lot of other architectures returns 'unsigned long'. When building the mlx5 driver on ARM, we get a warning about this: infiniband/hw/mlx5/mem.c: In function

Re: [PATCH] infiniband: mlx5: avoid a compile-time warning

2015-01-13 Thread Eli Cohen
Acked-by: Eli Cohen e...@mellanox.com On Tue, Jan 13, 2015 at 05:09:43PM +0100, Arnd Bergmann wrote: The return type of find_first_bit() is architecture specific, on ARM it is 'unsigned int', while the asm-generic code used on x86 and a lot of other architectures returns 'unsigned long'.

Re: [PATCH] infiniband: mlx5: avoid a compile-time warning

2015-01-13 Thread David Miller
From: Arnd Bergmann a...@arndb.de Date: Tue, 13 Jan 2015 17:09:43 +0100 The return type of find_first_bit() is architecture specific, on ARM it is 'unsigned int', while the asm-generic code used on x86 and a lot of other architectures returns 'unsigned long'. When building the mlx5 driver