]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Use div64_u64 for num_var_hw_entries calculation
authorJason Gunthorpe <jgg@mellanox.com>
Thu, 6 Feb 2020 14:27:54 +0000 (10:27 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 14 Feb 2020 19:21:52 +0000 (15:21 -0400)
commit6d86a4243a148e1d37237add3b04f9231a222fae
tree4c3b049589552db543cc1e45ea34743f51f93a35
parent531503192c0360ea2c8ec5ee2f1db6e0d7dc2a60
IB/mlx5: Use div64_u64 for num_var_hw_entries calculation

On i386:

ERROR: "__udivdi3" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined!
ERROR: "__divdi3" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined!

Fixes: 961e2a266cea ("IB/mlx5: Extend caps stage to handle VAR capabilities")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Reported-by: Alexander Lobakin <alobakin@dlink.ru>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c