linux/drivers/infiniband/hw/mlx5
Arnd Bergmann 7835bfb526 infiniband: mlx5: avoid a compile-time warning
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 'mlx5_ib_cont_pages':
infiniband/hw/mlx5/mem.c:84:143: warning: comparison of distinct pointer types lacks a cast
     m = min(m, find_first_bit(&tmp, sizeof(tmp)));

This patch changes the driver to use min_t to make it behave
the same way on all architectures.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-01-13 17:08:21 -05:00
..
Kconfig IB/mlx5: Remove dependency on X86 2014-02-13 20:48:02 -08:00
Makefile IB/mlx5: Implement the ODP capability query verb 2014-12-15 18:19:02 -08:00
ah.c mlx5: Add driver for Mellanox Connect-IB adapters 2013-07-08 10:32:24 -07:00
cq.c mlx5: don't duplicate kvfree() 2014-11-21 14:58:18 -05:00
doorbell.c IB: Refactor umem to use linear SG table 2014-03-04 10:34:28 -08:00
mad.c net/mlx5_core: Update device capabilities handling 2014-10-03 15:42:31 -07:00
main.c IB/mlx5: Implement on demand paging by adding support for MMU notifiers 2014-12-15 18:19:04 -08:00
mem.c infiniband: mlx5: avoid a compile-time warning 2015-01-13 17:08:21 -05:00
mlx5_ib.h IB/mlx5: Implement on demand paging by adding support for MMU notifiers 2014-12-15 18:19:04 -08:00
mr.c IB/mlx5: Implement on demand paging by adding support for MMU notifiers 2014-12-15 18:19:04 -08:00
odp.c IB/mlx5: Implement on demand paging by adding support for MMU notifiers 2014-12-15 18:19:04 -08:00
qp.c IB/mlx5: Page faults handling infrastructure 2014-12-15 18:19:03 -08:00
srq.c mlx5: don't duplicate kvfree() 2014-11-21 14:58:18 -05:00
user.h IB/mlx5: add missing padding at end of struct mlx5_ib_create_srq 2014-05-27 11:53:16 -07:00