Messages in this thread Patch in this message |  | | Date | Mon, 26 Jul 2021 17:12:30 -0000 | From | "irqchip-bot for Andy Shevchenko" <> | Subject | [irqchip: irq/irqchip-next] irqchip/partitions: Switch to bitmap_zalloc() |
| |
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: 4cad4da0795e9c03973d5456945394aee75bdf0f Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/4cad4da0795e9c03973d5456945394aee75bdf0f Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com> AuthorDate: Fri, 18 Jun 2021 18:16:51 +03:00 Committer: Marc Zyngier <maz@kernel.org> CommitterDate: Mon, 26 Jul 2021 18:01:27 +01:00
irqchip/partitions: Switch to bitmap_zalloc()
Switch to bitmap_zalloc() to show clearly what we are allocating. Besides that it returns pointer of bitmap type instead of opaque void *.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20210618151657.65305-1-andriy.shevchenko@linux.intel.com --- drivers/irqchip/irq-partition-percpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/irqchip/irq-partition-percpu.c b/drivers/irqchip/irq-partition-percpu.c index 89c23a1..8e76d29 100644 --- a/drivers/irqchip/irq-partition-percpu.c +++ b/drivers/irqchip/irq-partition-percpu.c @@ -215,8 +215,7 @@ struct partition_desc *partition_create_desc(struct fwnode_handle *fwnode, goto out; desc->domain = d; - desc->bitmap = kcalloc(BITS_TO_LONGS(nr_parts), sizeof(long), - GFP_KERNEL); + desc->bitmap = bitmap_zalloc(nr_parts, GFP_KERNEL); if (WARN_ON(!desc->bitmap)) goto out;
|  |