Message ID | 1449634307-24075-1-git-send-email-chaozhu@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 2574D568B; Wed, 9 Dec 2015 05:10:09 +0100 (CET) Received: from e23smtp05.au.ibm.com (e23smtp05.au.ibm.com [202.81.31.147]) by dpdk.org (Postfix) with ESMTP id D5A7D568A for <dev@dpdk.org>; Wed, 9 Dec 2015 05:10:06 +0100 (CET) Received: from localhost by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <dev@dpdk.org> from <chaozhu@linux.vnet.ibm.com>; Wed, 9 Dec 2015 14:10:03 +1000 Received: from d23dlp03.au.ibm.com (202.81.31.214) by e23smtp05.au.ibm.com (202.81.31.211) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 9 Dec 2015 14:10:00 +1000 X-IBM-Helo: d23dlp03.au.ibm.com X-IBM-MailFrom: chaozhu@linux.vnet.ibm.com X-IBM-RcptTo: dev@dpdk.org Received: from d23relay08.au.ibm.com (d23relay08.au.ibm.com [9.185.71.33]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 028BA357804F for <dev@dpdk.org>; Wed, 9 Dec 2015 15:10:00 +1100 (EST) Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay08.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id tB949Xex18153622 for <dev@dpdk.org>; Wed, 9 Dec 2015 15:09:41 +1100 Received: from d23av04.au.ibm.com (localhost [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id tB949R2j032584 for <dev@dpdk.org>; Wed, 9 Dec 2015 15:09:27 +1100 Received: from os_controller.crl.ibm.com ([9.186.57.26]) by d23av04.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id tB949Qpk031419 for <dev@dpdk.org>; Wed, 9 Dec 2015 15:09:26 +1100 From: Chao Zhu <chaozhu@linux.vnet.ibm.com> To: dev@dpdk.org Date: Wed, 9 Dec 2015 12:11:47 +0800 Message-Id: <1449634307-24075-1-git-send-email-chaozhu@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15120904-0017-0000-0000-0000025CB54D Subject: [dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Chao Zhu
Dec. 9, 2015, 4:11 a.m. UTC
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@caviumnetworks.com's message).
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);
Signed-off-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
---
lib/librte_hash/rte_hash.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
Comments
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@caviumnetworks.com's message). remove relative references from git log, - compile error exists on IBM POWER and ARM (see jerin.jacob@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@caviumnetworks.com> > > Signed-off-by: Chao Zhu <chaozhu@linux.vnet.ibm.com> > --- > lib/librte_hash/rte_hash.h | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > 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 @@ > */ > > #include <stdint.h> > +#include <stddef.h> > > #ifdef __cplusplus > extern "C" { > -- > 1.7.1 >
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@caviumnetworks.com's message). > > remove relative references from git log, > > - compile error exists on IBM POWER and ARM (see jerin.jacob@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@caviumnetworks.com> Applied, thanks
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 @@ */ #include <stdint.h> +#include <stddef.h> #ifdef __cplusplus extern "C" {