[dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER

Thomas Monjalon thomas.monjalon at 6wind.com
Wed Dec 9 21:22:15 CET 2015


2015-12-09 10:10, Jerin Jacob:
> 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" definition in rte_hash.h. The
> > compile error exists on IBM POWER and ARM (see jerin.jacob at caviumnetworks.com's message).
> 
> remove relative references from git log,
> 
> - compile error exists on IBM POWER and ARM (see jerin.jacob at caviumnetworks.com's message).
> + compile error exists on IBM POWER and ARM64 GCC 5.2
> 
> > 
> > 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 ‘size_t’
> >  typedef int (*rte_hash_cmp_eq_t)(const void *key1, const void *key2, size_t key_len);
> >                                                                       ^
> > /tmp/dpdk/build/include/rte_hash.h:120:48: error: unknown type name ‘rte_hash_cmp_eq_t’
> >  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 <jerin.jacob at caviumnetworks.com>

Applied, thanks


More information about the dev mailing list