stack: fix sign of list length
authorPhil Yang <phil.yang@arm.com>
Mon, 17 Jun 2019 07:41:30 +0000 (15:41 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 27 Jun 2019 16:00:59 +0000 (18:00 +0200)
commit6146fbb2fed18787143aaeab0ca257bdc3a17f05
tree0110fdbecb0a804dbfd6986477690873bdb3d578
parent317832f97c165cd4f327567935dfbd6af92b4159
stack: fix sign of list length

clang raise 'pointer-sign' warnings in __atomic_compare_exchange
when passing 'uint64_t *' to parameter of type 'int64_t *' converts
between pointers to integer types with different sign.

Fixes: 7e6e609939a8 ("stack: add C11 atomic implementation")
Cc: stable@dpdk.org
Suggested-by: Gage Eads <gage.eads@intel.com>
Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Acked-by: Gage Eads <gage.eads@intel.com>
lib/librte_stack/rte_stack.h
lib/librte_stack/rte_stack_lf_c11.h
lib/librte_stack/rte_stack_lf_generic.h