Re: [PATCH] RDMA/mlx4: Use bitmap_alloc() when applicable

From: Jason Gunthorpe
Date: Mon Nov 29 2021 - 13:38:45 EST


On Thu, Nov 25, 2021 at 08:42:51PM +0100, Christophe JAILLET wrote:
> Use 'bitmap_alloc()' to simplify code, improve the semantic and avoid some
> open-coded arithmetic in allocator arguments.
>
> Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
> consistency.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
> ---
> drivers/infiniband/hw/mlx4/main.c | 10 ++++------
> 1 file changed, 4 insertions(+), 6 deletions(-)

Applied to for-next, thanks

Jason