From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH] librte_hash: Fix compile errors on IBM POWER Date: Wed, 9 Dec 2015 10:10:02 +0530 Message-ID: <20151209044000.GA5769@localhost.localdomain> References: <1449634307-24075-1-git-send-email-chaozhu@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org To: Chao Zhu Return-path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0076.outbound.protection.outlook.com [157.56.110.76]) by dpdk.org (Postfix) with ESMTP id 220F6569C for ; Wed, 9 Dec 2015 05:40:29 +0100 (CET) Content-Disposition: inline In-Reply-To: <1449634307-24075-1-git-send-email-chaozhu@linux.vnet.ibm.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Dec 09, 2015 at 12:11:47PM +0800, Chao Zhu wrote: > This patch fixes the compile errors caused by lacking of "size_t" defin= ition in rte_hash.h. The > compile error exists on IBM POWER and ARM (see jerin.jacob@caviumnetwor= ks.com's message). remove relative references from git log, - compile error exists on IBM POWER and ARM (see jerin.jacob@caviumnetwor= ks.com's message). + compile error exists on IBM POWER and ARM64 GCC 5.2 >=20 > The errors are like: > In file included from /tmp/dpdk/app/test/test_hash_scaling.c:35:0: > /tmp/dpdk/build/include/rte_hash.h:70:70: error: unknown type name =E2=80= =98size_t=E2=80=99 > typedef int (*rte_hash_cmp_eq_t)(const void *key1, const void *key2, s= ize_t key_len); > ^ > /tmp/dpdk/build/include/rte_hash.h:120:48: error: unknown type name =E2= =80=98rte_hash_cmp_eq_t=E2=80=99 > void rte_hash_set_cmp_func(struct rte_hash *h, rte_hash_cmp_eq_t func)= ; add fixes: Fixes: 95da2f8e9c61 ("hash: customize compare function") with above changes, Acked-by: Jerin Jacob >=20 > Signed-off-by: Chao Zhu > --- > lib/librte_hash/rte_hash.h | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) >=20 > diff --git a/lib/librte_hash/rte_hash.h b/lib/librte_hash/rte_hash.h > index 6494ade..85fc416 100644 > --- a/lib/librte_hash/rte_hash.h > +++ b/lib/librte_hash/rte_hash.h > @@ -41,6 +41,7 @@ > */ > =20 > #include > +#include > =20 > #ifdef __cplusplus > extern "C" { > --=20 > 1.7.1 >=20