DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] eal/stack: fix 'pointer-sign' warning
@ 2019-06-14 16:54 Phil Yang
  2019-06-14 19:49 ` Eads, Gage
  2019-06-17  7:41 ` [dpdk-dev] [PATCH v2] " Phil Yang
  0 siblings, 2 replies; 6+ messages in thread
From: Phil Yang @ 2019-06-14 16:54 UTC (permalink / raw)
  To: dev; +Cc: nd, gage.eads, honnappa.nagarahalli, gavin.hu, phil.yang

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")

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>

---
 lib/librte_stack/rte_stack_lf_c11.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_stack/rte_stack_lf_c11.h b/lib/librte_stack/rte_stack_lf_c11.h
index a316e9a..e3b9eff 100644
--- a/lib/librte_stack/rte_stack_lf_c11.h
+++ b/lib/librte_stack/rte_stack_lf_c11.h
@@ -97,7 +97,7 @@ __rte_stack_lf_pop_elems(struct rte_stack_lf_list *list,
 	return NULL;
 #else
 	struct rte_stack_lf_head old_head;
-	uint64_t len;
+	int64_t len;
 	int success;
 
 	/* Reserve num elements, if available */
-- 
2.7.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-06-27 16:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-14 16:54 [dpdk-dev] [PATCH] eal/stack: fix 'pointer-sign' warning Phil Yang
2019-06-14 19:49 ` Eads, Gage
2019-06-17  7:49   ` Phil Yang (Arm Technology China)
2019-06-17  7:41 ` [dpdk-dev] [PATCH v2] " Phil Yang
2019-06-18 15:43   ` Eads, Gage
2019-06-27 16:04     ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).