diff options
author | Michal Kubecek <[email protected]> | 2019-10-02 14:12:41 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-10-02 11:08:20 -0400 |
commit | 8b6b82ad163b54a23f0e89710fb25461d45109c4 (patch) | |
tree | 048b71539c9889066a468e5db408271eaebbe7cd /tools/perf/util/trace-event-scripting.c | |
parent | e95584a889e1902fdf1ded9712e2c3c3083baf96 (diff) |
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: 29cf8febd185 ("net/mlx5: DR, ICM pool memory allocator")
Reported-by: Borislav Petkov <[email protected]>
Signed-off-by: Michal Kubecek <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions