rte_free accepts only non-cva qualified arguments so cast away RTE_ATOMIC qualification for tbl_chng_cnt and h->tbl_chng_cnt when calling rte_free.
Signed-off-by: Tyler Retzlaff <roret...@linux.microsoft.com> --- lib/hash/rte_cuckoo_hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hash/rte_cuckoo_hash.c b/lib/hash/rte_cuckoo_hash.c index 9cf9464..b31a3d9 100644 --- a/lib/hash/rte_cuckoo_hash.c +++ b/lib/hash/rte_cuckoo_hash.c @@ -481,7 +481,7 @@ struct rte_hash * rte_free(buckets); rte_free(buckets_ext); rte_free(k); - rte_free(tbl_chng_cnt); + rte_free((void *)(uintptr_t)tbl_chng_cnt); rte_free(ext_bkt_to_free); return NULL; } @@ -526,7 +526,7 @@ struct rte_hash * rte_free(h->key_store); rte_free(h->buckets); rte_free(h->buckets_ext); - rte_free(h->tbl_chng_cnt); + rte_free((void *)(uintptr_t)h->tbl_chng_cnt); rte_free(h->ext_bkt_to_free); rte_free(h->hash_rcu_cfg); rte_free(h); -- 1.8.3.1