KVM: arm64: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 18 Apr 2023 21:47:38 +0000 (23:47 +0200)
committerMarc Zyngier <maz@kernel.org>
Thu, 20 Apr 2023 08:10:28 +0000 (09:10 +0100)
commita00e9e4319c2a8a8b166da028292de83190e39a4
treec9e910e07d16e4a5d94698008ae9924b5dc16b13
parent4be8ddb48b1b6c6067fb59c846b9c6e19d6efe14
KVM: arm64: Use the bitmap API to allocate bitmaps

Use bitmap_zalloc()/bitmap_free() instead of hand-writing them.

It is less verbose and it improves the semantic.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/3c5043731db4d3635383e9326bc7e98e25de3288.1681854412.git.christophe.jaillet@wanadoo.fr
arch/arm64/kvm/vmid.c