irqchip: Switch to bitmap_zalloc()
Subsystems (4)
PATCH 1/7 irqchip: 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 *.
--- drivers/irqchip/irq-partition-percpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/irqchip/irq-partition-percpu.c +1 -2
@@ -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;
Signature · 1 line
2.30.2
PATCH 2/7 irqchip/alpine-msi: 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 *.
--- drivers/irqchip/irq-alpine-msi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/irqchip/irq-alpine-msi.c +2 -4
@@ -267,9 +267,7 @@ static int alpine_msix_init(struct device_node *node, goto err_priv; } - priv->msi_map =kcalloc (BITS_TO_LONGS (priv->num_spis), -sizeof (*priv->msi_map), -GFP_KERNEL ); + priv->msi_map =bitmap_zalloc (priv->num_spis,GFP_KERNEL );if (!priv->msi_map) { ret = -ENOMEM ; goto err_priv;
@@ -285,7 +283,7 @@ static int alpine_msix_init(struct device_node *node,return 0 ; err_map: -kfree (priv->msi_map); +bitmap_free (priv->msi_map); err_priv:kfree (priv);return ret;
Signature · 1 line
2.30.2
[irqchip: irq/irqchip-next] irqchip/alpine-msi: Switch to bitmap_zalloc()
The following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: 3f1808f63f0458762403549b3d975ef6e971b6e0 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/3f1808f63f0458762403549b3d975ef6e971b6e0 Author: Andy Shevchenko <[email protected]> AuthorDate: Fri, 18 Jun 2021 18:16:52 +03:00 Committer: Marc Zyngier <[email protected]> CommitterDate: Mon, 26 Jul 2021 18:01:44 +01:00
irqchip/alpine-msi: 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 *.
--- drivers/irqchip/irq-alpine-msi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/irqchip/irq-alpine-msi.c +2 -4
@@ -267,9 +267,7 @@ static int alpine_msix_init(struct device_node *node, goto err_priv; } - priv->msi_map =kcalloc (BITS_TO_LONGS (priv->num_spis), -sizeof (*priv->msi_map), -GFP_KERNEL ); + priv->msi_map =bitmap_zalloc (priv->num_spis,GFP_KERNEL );if (!priv->msi_map) { ret = -ENOMEM ; goto err_priv;
@@ -285,7 +283,7 @@ static int alpine_msix_init(struct device_node *node,return 0 ; err_map: -kfree (priv->msi_map); +bitmap_free (priv->msi_map); err_priv:kfree (priv);return ret;
PATCH 3/7 irqchip/gic-v2m: Switch to bitmap_zalloc()
In reply to Andy ShevchenkoSwitch to bitmap_zalloc() to show clearly what we are allocating. Besides that it returns pointer of bitmap type instead of opaque void *.
--- drivers/irqchip/irq-gic-v2m.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/irqchip/irq-gic-v2m.c +2 -3
@@ -269,7 +269,7 @@ static void gicv2m_teardown(void)list_for_each_entry_safe (v2m, tmp, &v2m_nodes, entry) {list_del (&v2m->entry); -kfree (v2m->bm); +bitmap_free (v2m->bm);iounmap (v2m->base);of_node_put (to_of_node (v2m->fwnode));if (is_fwnode_irqchip (v2m->fwnode))
@@ -386,8 +386,7 @@ static int __init gicv2m_init_one(struct fwnode_handle *fwnode,break ; } } - v2m->bm =kcalloc (BITS_TO_LONGS (v2m->nr_spis),sizeof (long ), -GFP_KERNEL ); + v2m->bm =bitmap_zalloc (v2m->nr_spis,GFP_KERNEL );if (!v2m->bm) { ret = -ENOMEM ; goto err_iounmap;
Signature · 1 line
2.30.2
[irqchip: irq/irqchip-next] irqchip/gic-v2m: Switch to bitmap_zalloc()
The following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: 81d3c9e7b43e9426e67a5df66d51a5f2bfce0362 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/81d3c9e7b43e9426e67a5df66d51a5f2bfce0362 Author: Andy Shevchenko <[email protected]> AuthorDate: Fri, 18 Jun 2021 18:16:53 +03:00 Committer: Marc Zyngier <[email protected]> CommitterDate: Mon, 26 Jul 2021 18:01:44 +01:00
irqchip/gic-v2m: 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 *.
--- drivers/irqchip/irq-gic-v2m.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/irqchip/irq-gic-v2m.c +2 -3
@@ -269,7 +269,7 @@ static void gicv2m_teardown(void)list_for_each_entry_safe (v2m, tmp, &v2m_nodes, entry) {list_del (&v2m->entry); -kfree (v2m->bm); +bitmap_free (v2m->bm);iounmap (v2m->base);of_node_put (to_of_node (v2m->fwnode));if (is_fwnode_irqchip (v2m->fwnode))
@@ -386,8 +386,7 @@ static int __init gicv2m_init_one(struct fwnode_handle *fwnode,break ; } } - v2m->bm =kcalloc (BITS_TO_LONGS (v2m->nr_spis),sizeof (long ), -GFP_KERNEL ); + v2m->bm =bitmap_zalloc (v2m->nr_spis,GFP_KERNEL );if (!v2m->bm) { ret = -ENOMEM ; goto err_iounmap;
PATCH 4/7 irqchip/gic-v3: Switch to bitmap_zalloc()
In reply to Andy ShevchenkoSwitch to bitmap_zalloc() to show clearly what we are allocating. Besides that it returns pointer of bitmap type instead of opaque void *.
--- drivers/irqchip/irq-gic-v3-its.c | 9 ++++----- drivers/irqchip/irq-gic-v3-mbi.c | 5 ++--- 2 files changed, 6 insertions(+), 8 deletions(-)
drivers/irqchip/irq-gic-v3-its.c +4 -5
@@ -2140,7 +2140,7 @@ static unsigned long *its_lpi_alloc(int nr_irqs, u32 *base, int *nr_ids)if (err) goto out; - bitmap =kcalloc (BITS_TO_LONGS (nr_irqs),sizeof (long ),GFP_ATOMIC ); + bitmap =bitmap_zalloc (nr_irqs,GFP_ATOMIC );if (!bitmap) goto out;
@@ -2156,7 +2156,7 @@ static unsigned long *its_lpi_alloc(int nr_irqs, u32 *base, int *nr_ids)static void its_lpi_free (unsigned long *bitmap,u32 base,u32 nr_ids) {WARN_ON (free_lpi_range (base, nr_ids)); -kfree (bitmap); +bitmap_free (bitmap); }static void gic_reset_prop_table (void *va)
@@ -3376,8 +3376,7 @@ static struct its_device *its_create_device(struct its_node *its, u32 dev_id,if (alloc_lpis) { lpi_map =its_lpi_alloc (nvecs, &lpi_base, &nr_lpis);if (lpi_map) - col_map =kcalloc (nr_lpis,sizeof (*col_map), -GFP_KERNEL ); + col_map =kcalloc (nr_lpis,sizeof (*col_map),GFP_KERNEL ); }else { col_map =kcalloc (nr_ites,sizeof (*col_map),GFP_KERNEL ); nr_lpis =0 ;
@@ -3387,7 +3386,7 @@ static struct its_device *its_create_device(struct its_node *its, u32 dev_id,if (!dev || !itt || !col_map || (!lpi_map && alloc_lpis)) {kfree (dev);kfree (itt); -kfree (lpi_map); +bitmap_free (lpi_map);kfree (col_map);return NULL ; }
drivers/irqchip/irq-gic-v3-mbi.c +2 -3
@@ -290,8 +290,7 @@ int __init mbi_init(struct fwnode_handle *fwnode, struct irq_domain *parent)if (ret) goto err_free_mbi; - mbi_ranges[n].bm =kcalloc (BITS_TO_LONGS (mbi_ranges[n].nr_spis), -sizeof (long ),GFP_KERNEL ); + mbi_ranges[n].bm =bitmap_zalloc (mbi_ranges[n].nr_spis,GFP_KERNEL );if (!mbi_ranges[n].bm) { ret = -ENOMEM ; goto err_free_mbi;
@@ -329,7 +328,7 @@ int __init mbi_init(struct fwnode_handle *fwnode, struct irq_domain *parent) err_free_mbi:if (mbi_ranges) {for (n =0 ; n < mbi_range_nr; n++) -kfree (mbi_ranges[n].bm); +bitmap_free (mbi_ranges[n].bm);kfree (mbi_ranges); }
Signature · 1 line
2.30.2
Marc Zyngier
maintainerRe: [PATCH v1 4/7] irqchip/gic-v3: Switch to bitmap_zalloc()
drivers/irqchip/irq-gic-v3-its.c static struct its_device *its_create_device(struct its_node *its, u32 dev_id, · line 3379
Quoted 7 lines · Andy Shevchenko
drivers/irqchip/irq-gic-v3-its.c +1
-2@@ -3376,8 +3376,7 @@ static struct its_device *its_create_device(struct its_node *its, u32 dev_id,if (alloc_lpis) { lpi_map =its_lpi_alloc (nvecs, &lpi_base, &nr_lpis);if (lpi_map) - col_map =kcalloc (nr_lpis,sizeof (*col_map), -GFP_KERNEL ); + col_map =kcalloc (nr_lpis,sizeof (*col_map),GFP_KERNEL );
This looks like an unrelated/spurious change. I've reverted it locally.
M.
Signature · 6 lines
Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
[irqchip: irq/irqchip-next] irqchip/gic-v3: Switch to bitmap_zalloc()
In reply to Andy ShevchenkoThe following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: ff5fe8867a5feaf90b1cb9b766f3de3a1caf9f33 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/ff5fe8867a5feaf90b1cb9b766f3de3a1caf9f33 Author: Andy Shevchenko <[email protected]> AuthorDate: Fri, 18 Jun 2021 18:16:54 +03:00 Committer: Marc Zyngier <[email protected]> CommitterDate: Mon, 26 Jul 2021 18:04:01 +01:00
irqchip/gic-v3: 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 *.
--- drivers/irqchip/irq-gic-v3-its.c | 6 +++--- drivers/irqchip/irq-gic-v3-mbi.c | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-)
drivers/irqchip/irq-gic-v3-its.c +3 -3
@@ -2140,7 +2140,7 @@ static unsigned long *its_lpi_alloc(int nr_irqs, u32 *base, int *nr_ids)if (err) goto out; - bitmap =kcalloc (BITS_TO_LONGS (nr_irqs),sizeof (long ),GFP_ATOMIC ); + bitmap =bitmap_zalloc (nr_irqs,GFP_ATOMIC );if (!bitmap) goto out;
@@ -2156,7 +2156,7 @@ out:static void its_lpi_free (unsigned long *bitmap,u32 base,u32 nr_ids) {WARN_ON (free_lpi_range (base, nr_ids)); -kfree (bitmap); +bitmap_free (bitmap); }static void gic_reset_prop_table (void *va)
@@ -3387,7 +3387,7 @@ static struct its_device *its_create_device(struct its_node *its, u32 dev_id,if (!dev || !itt || !col_map || (!lpi_map && alloc_lpis)) {kfree (dev);kfree (itt); -kfree (lpi_map); +bitmap_free (lpi_map);kfree (col_map);return NULL ; }
drivers/irqchip/irq-gic-v3-mbi.c +2 -3
@@ -290,8 +290,7 @@ int __init mbi_init(struct fwnode_handle *fwnode, struct irq_domain *parent)if (ret) goto err_free_mbi; - mbi_ranges[n].bm =kcalloc (BITS_TO_LONGS (mbi_ranges[n].nr_spis), -sizeof (long ),GFP_KERNEL ); + mbi_ranges[n].bm =bitmap_zalloc (mbi_ranges[n].nr_spis,GFP_KERNEL );if (!mbi_ranges[n].bm) { ret = -ENOMEM ; goto err_free_mbi;
@@ -329,7 +328,7 @@ int __init mbi_init(struct fwnode_handle *fwnode, struct irq_domain *parent) err_free_mbi:if (mbi_ranges) {for (n =0 ; n < mbi_range_nr; n++) -kfree (mbi_ranges[n].bm); +bitmap_free (mbi_ranges[n].bm);kfree (mbi_ranges); }
PATCH 5/7 irqchip/ls-scfg-msi: Switch to devm_bitmap_zalloc()
In reply to Andy ShevchenkoSwitch to devm_bitmap_zalloc() to show clearly what we are allocating. Besides that it returns pointer of bitmap type instead of opaque void *.
--- drivers/irqchip/irq-ls-scfg-msi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/irqchip/irq-ls-scfg-msi.c +1 -4
@@ -362,10 +362,7 @@ static int ls_scfg_msi_probe(struct platform_device *pdev) msi_data->irqs_num =MSI_IRQS_PER_MSIR * (1 << msi_data->cfg->ibs_shift); - msi_data->used =devm_kcalloc (&pdev->dev, -BITS_TO_LONGS (msi_data->irqs_num), -sizeof (*msi_data->used), -GFP_KERNEL ); + msi_data->used =devm_bitmap_zalloc (&pdev->dev, msi_data->irqs_num,GFP_KERNEL );if (!msi_data->used)return -ENOMEM ;/*
Signature · 1 line
2.30.2
[irqchip: irq/irqchip-next] irqchip/ls-scfg-msi: Switch to devm_bitmap_zalloc()
The following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: 43a1965fc5ae911c83a49ad793677aa6ba0e18e2 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/43a1965fc5ae911c83a49ad793677aa6ba0e18e2 Author: Andy Shevchenko <[email protected]> AuthorDate: Fri, 18 Jun 2021 18:16:55 +03:00 Committer: Marc Zyngier <[email protected]> CommitterDate: Mon, 26 Jul 2021 18:04:10 +01:00
irqchip/ls-scfg-msi: Switch to devm_bitmap_zalloc()
Switch to devm_bitmap_zalloc() to show clearly what we are allocating. Besides that it returns pointer of bitmap type instead of opaque void *.
--- drivers/irqchip/irq-ls-scfg-msi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/irqchip/irq-ls-scfg-msi.c +1 -4
@@ -362,10 +362,7 @@ static int ls_scfg_msi_probe(struct platform_device *pdev) msi_data->irqs_num =MSI_IRQS_PER_MSIR * (1 << msi_data->cfg->ibs_shift); - msi_data->used =devm_kcalloc (&pdev->dev, -BITS_TO_LONGS (msi_data->irqs_num), -sizeof (*msi_data->used), -GFP_KERNEL ); + msi_data->used =devm_bitmap_zalloc (&pdev->dev, msi_data->irqs_num,GFP_KERNEL );if (!msi_data->used)return -ENOMEM ;/*
PATCH 6/7 irqchip/mvebu-gicp: Switch to devm_bitmap_zalloc()
In reply to Andy ShevchenkoSwitch to devm_bitmap_zalloc() to show clearly what we are allocating. Besides that it returns pointer of bitmap type instead of opaque void *.
--- drivers/irqchip/irq-mvebu-gicp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/irqchip/irq-mvebu-gicp.c +1 -3
@@ -210,9 +210,7 @@ static int mvebu_gicp_probe(struct platform_device *pdev) gicp->spi_cnt += gicp->spi_ranges[i].count; } - gicp->spi_bitmap =devm_kcalloc (&pdev->dev, -BITS_TO_LONGS (gicp->spi_cnt),sizeof (long ), -GFP_KERNEL ); + gicp->spi_bitmap =devm_bitmap_zalloc (&pdev->dev, gicp->spi_cnt,GFP_KERNEL );if (!gicp->spi_bitmap)return -ENOMEM ;
Signature · 1 line
2.30.2
[irqchip: irq/irqchip-next] irqchip/mvebu-gicp: Switch to devm_bitmap_zalloc()
The following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: 3db3969f5375fe0a43c03cb4b55ed643585b140d Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/3db3969f5375fe0a43c03cb4b55ed643585b140d Author: Andy Shevchenko <[email protected]> AuthorDate: Fri, 18 Jun 2021 18:16:56 +03:00 Committer: Marc Zyngier <[email protected]> CommitterDate: Mon, 26 Jul 2021 18:04:10 +01:00
irqchip/mvebu-gicp: Switch to devm_bitmap_zalloc()
Switch to devm_bitmap_zalloc() to show clearly what we are allocating. Besides that it returns pointer of bitmap type instead of opaque void *.
--- drivers/irqchip/irq-mvebu-gicp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/irqchip/irq-mvebu-gicp.c +1 -3
@@ -210,9 +210,7 @@ static int mvebu_gicp_probe(struct platform_device *pdev) gicp->spi_cnt += gicp->spi_ranges[i].count; } - gicp->spi_bitmap =devm_kcalloc (&pdev->dev, -BITS_TO_LONGS (gicp->spi_cnt),sizeof (long ), -GFP_KERNEL ); + gicp->spi_bitmap =devm_bitmap_zalloc (&pdev->dev, gicp->spi_cnt,GFP_KERNEL );if (!gicp->spi_bitmap)return -ENOMEM ;
PATCH 7/7 irqchip/mvebu-odmi: Switch to bitmap_zalloc()
In reply to Andy ShevchenkoSwitch to bitmap_zalloc() to show clearly what we are allocating. Besides that it returns pointer of bitmap type instead of opaque void *.
--- drivers/irqchip/irq-mvebu-odmi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/irqchip/irq-mvebu-odmi.c +2 -3
@@ -171,8 +171,7 @@ static int __init mvebu_odmi_init(struct device_node *node,if (!odmis)return -ENOMEM ; - odmis_bm =kcalloc (BITS_TO_LONGS (odmis_count *NODMIS_PER_FRAME ), -sizeof (long ),GFP_KERNEL ); + odmis_bm =bitmap_zalloc (odmis_count *NODMIS_PER_FRAME ,GFP_KERNEL );if (!odmis_bm) { ret = -ENOMEM ; goto err_alloc;
@@ -227,7 +226,7 @@ static int __init mvebu_odmi_init(struct device_node *node,if (odmi->base && !IS_ERR (odmi->base))iounmap (odmis[i].base); } -kfree (odmis_bm); +bitmap_free (odmis_bm); err_alloc:kfree (odmis);return ret;
Signature · 1 line
2.30.2
[irqchip: irq/irqchip-next] irqchip/mvebu-odmi: Switch to bitmap_zalloc()
The following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: c980983daebf10633c922998bade3a7fd74f1fc1 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/c980983daebf10633c922998bade3a7fd74f1fc1 Author: Andy Shevchenko <[email protected]> AuthorDate: Fri, 18 Jun 2021 18:16:57 +03:00 Committer: Marc Zyngier <[email protected]> CommitterDate: Mon, 26 Jul 2021 18:04:11 +01:00
irqchip/mvebu-odmi: 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 *.
--- drivers/irqchip/irq-mvebu-odmi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/irqchip/irq-mvebu-odmi.c +2 -3
@@ -171,8 +171,7 @@ static int __init mvebu_odmi_init(struct device_node *node,if (!odmis)return -ENOMEM ; - odmis_bm =kcalloc (BITS_TO_LONGS (odmis_count *NODMIS_PER_FRAME ), -sizeof (long ),GFP_KERNEL ); + odmis_bm =bitmap_zalloc (odmis_count *NODMIS_PER_FRAME ,GFP_KERNEL );if (!odmis_bm) { ret = -ENOMEM ; goto err_alloc;
@@ -227,7 +226,7 @@ err_unmap:if (odmi->base && !IS_ERR (odmi->base))iounmap (odmis[i].base); } -kfree (odmis_bm); +bitmap_free (odmis_bm); err_alloc:kfree (odmis);return ret;
Quoted 2 lines · Andy Shevchenko
Switch to
bitmap_zalloc()to show clearly what we are allocating. Besides that it returns pointer of bitmap type instead of opaque void *.
Applied to irq/irqchip-next, thanks!
[1/7] irqchip: Switch to bitmap_zalloc()
commit: 4cad4da0795e9c03973d5456945394aee75bdf0f
[2/7] irqchip/alpine-msi: Switch to bitmap_zalloc()
commit: 3f1808f63f0458762403549b3d975ef6e971b6e0
[3/7] irqchip/gic-v2m: Switch to bitmap_zalloc()
commit: 81d3c9e7b43e9426e67a5df66d51a5f2bfce0362
[4/7] irqchip/gic-v3: Switch to bitmap_zalloc()
commit: ff5fe8867a5feaf90b1cb9b766f3de3a1caf9f33
[5/7] irqchip/ls-scfg-msi: Switch to devm_bitmap_zalloc()
commit: 43a1965fc5ae911c83a49ad793677aa6ba0e18e2
[6/7] irqchip/mvebu-gicp: Switch to devm_bitmap_zalloc()
commit: 3db3969f5375fe0a43c03cb4b55ed643585b140d
[7/7] irqchip/mvebu-odmi: Switch to bitmap_zalloc()
commit: c980983daebf10633c922998bade3a7fd74f1fc1Cheers,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
[irqchip: irq/irqchip-next] irqchip/partitions: Switch to bitmap_zalloc()
In reply to Andy ShevchenkoThe following commit has been merged into the irq/irqchip-next branch of irqchip:
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 <[email protected]> AuthorDate: Fri, 18 Jun 2021 18:16:51 +03:00 Committer: Marc Zyngier <[email protected]> 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 *.
--- drivers/irqchip/irq-partition-percpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/irqchip/irq-partition-percpu.c +1 -2
@@ -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;