Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet
Michal Kubecek 8b6b82ad16 mlx5: avoid 64-bit division in dr_icm_pool_mr_create()
Recently added code introduces 64-bit division in dr_icm_pool_mr_create()
so that build on 32-bit architectures fails with

  ERROR: "__umoddi3" [drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.ko] undefined!

As the divisor is always a power of 2, we can use bitwise operation
instead.

Fixes: 29cf8febd1 ("net/mlx5: DR, ICM pool memory allocator")
Reported-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-10-02 11:08:20 -04:00
..
2019-08-08 18:03:42 -07:00
2019-09-25 13:59:43 +02:00
2019-09-24 16:53:19 +02:00
2019-09-26 08:56:17 +02:00
2019-10-01 09:24:05 -07:00
2019-09-21 19:08:31 -07:00
2019-09-21 19:08:31 -07:00