[PATCH v4 10/11] common/cnxk: remove unused plt_bitmap_free()

Ariel Otilibili otilibil at eurecom.fr
Sun Dec 22 13:49:30 CET 2024


Depends on d5941e7269 ("devtools/cocci,lib/eal: remove unused
rte_bitmap_free()").

plt_bitmap_free() is an alias of rte_bitmap_free().

A subsequent commit removes all its occurrences:

```
$ git grep -Pn 'plt_bitmap_free\('

drivers/common/cnxk/roc_mcs.c:722:      plt_bitmap_free(rsrc->tcam_bmap);
drivers/common/cnxk/roc_mcs.c:724:      plt_bitmap_free(rsrc->secy_bmap);
drivers/common/cnxk/roc_mcs.c:726:      plt_bitmap_free(rsrc->sc_bmap);
drivers/common/cnxk/roc_mcs.c:728:      plt_bitmap_free(rsrc->sa_bmap);
drivers/common/cnxk/roc_nix_inl_dev.c:840:              plt_bitmap_free(inl_dev->soft_exp_ring_bmap);
drivers/common/cnxk/roc_nix_inl_dev.c:1072:             plt_bitmap_free(inl_dev->soft_exp_ring_bmap);
drivers/common/cnxk/roc_nix_tm.c:2036:          plt_bitmap_free(nix->schq_bmp[hw_lvl]);
drivers/common/cnxk/roc_nix_tm.c:2037:          plt_bitmap_free(nix->schq_contig_bmp[hw_lvl]);
drivers/common/cnxk/roc_npa.c:1260:     plt_bitmap_free(lf->npa_bmp);
drivers/common/cnxk/roc_npa.c:1277:     plt_bitmap_free(lf->npa_bmp);
drivers/common/cnxk/roc_npc_aging.c:46: plt_bitmap_free(flow_age->aged_flows);
drivers/net/cnxk/cnxk_ethdev.c:314:             plt_bitmap_free(dev->outb.sa_bmap);
```

Fixes: fa8f86a14e ("common/cnxk: add build infrastructre and HW definition")
Signed-off-by: Ariel Otilibili <otilibil at eurecom.fr>
---
Cc: stable at dpdk.org
Cc: Nithin Dabilpuram <ndabilpuram at marvell.com>
Cc: Kiran Kumar K <kirankumark at marvell.com>
Cc: Sunil Kumar Kori <skori at marvell.com>
Cc: Satha Rao <skoteshwar at marvell.com>
Cc: Harman Kalra <hkalra at marvell.com>
---
 drivers/common/cnxk/roc_platform.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/common/cnxk/roc_platform.h b/drivers/common/cnxk/roc_platform.h
index df4f88f288..6c4a69377f 100644
--- a/drivers/common/cnxk/roc_platform.h
+++ b/drivers/common/cnxk/roc_platform.h
@@ -124,7 +124,6 @@
 #define plt_bitmap			rte_bitmap
 #define plt_bitmap_init			rte_bitmap_init
 #define plt_bitmap_reset		rte_bitmap_reset
-#define plt_bitmap_free			rte_bitmap_free
 #define plt_bitmap_clear		rte_bitmap_clear
 #define plt_bitmap_set			rte_bitmap_set
 #define plt_bitmap_get			rte_bitmap_get
-- 
2.47.1



More information about the stable mailing list