From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 24C74A00E6 for ; Fri, 14 Jun 2019 18:54:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4D7481D5AA; Fri, 14 Jun 2019 18:54:54 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 89E5F1D587 for ; Fri, 14 Jun 2019 18:54:52 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CBA8528; Fri, 14 Jun 2019 09:54:51 -0700 (PDT) Received: from phil-VirtualBox.shanghai.arm.com (unknown [10.171.20.35]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4F5AA3F694; Fri, 14 Jun 2019 09:54:50 -0700 (PDT) From: Phil Yang To: dev@dpdk.org Cc: nd@arm.com, gage.eads@intel.com, honnappa.nagarahalli@arm.com, gavin.hu@arm.com, phil.yang@arm.com Date: Sat, 15 Jun 2019 00:54:43 +0800 Message-Id: <1560531283-5229-1-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] eal/stack: fix 'pointer-sign' warning X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Reviewed-by: Honnappa Nagarahalli --- 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