[PATCH v2] hash: cast away atomic qualification
Tyler Retzlaff
roretzla at linux.microsoft.com
Wed May 22 18:33:44 CEST 2024
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.
Without this change using enable_stdatomic=true with LLVM or MSVC will
result in a warning being emitted for discarding the atomic
qualification.
v2:
* update commit message to indicate the conditions under
which a warning will be issued without this patch.
Tyler Retzlaff (1):
hash: cast away atomic qualification
lib/hash/rte_cuckoo_hash.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
1.8.3.1
More information about the dev
mailing list