DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER
@ 2015-12-09  4:11 Chao Zhu
  2015-12-09  4:40 ` Jerin Jacob
  0 siblings, 1 reply; 7+ messages in thread
From: Chao Zhu @ 2015-12-09  4:11 UTC (permalink / raw)
  To: dev

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

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

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

* Re: [dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER
  2015-12-09  4:11 [dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER Chao Zhu
@ 2015-12-09  4:40 ` Jerin Jacob
  2015-12-09 20:22   ` Thomas Monjalon
  0 siblings, 1 reply; 7+ messages in thread
From: Jerin Jacob @ 2015-12-09  4:40 UTC (permalink / raw)
  To: Chao Zhu; +Cc: 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" 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
> 

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

* Re: [dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER
  2015-12-09  4:40 ` Jerin Jacob
@ 2015-12-09 20:22   ` Thomas Monjalon
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Monjalon @ 2015-12-09 20:22 UTC (permalink / raw)
  To: Chao Zhu; +Cc: dev

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

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

* Re: [dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER
  2015-12-08  9:10 ` Jerin Jacob
@ 2015-12-09  3:54   ` Chao Zhu
  0 siblings, 0 replies; 7+ messages in thread
From: Chao Zhu @ 2015-12-09  3:54 UTC (permalink / raw)
  To: Jerin Jacob; +Cc: dev

Jerin,

Both stdio.h and stddef.h works on POWER.  To make it work on ARM, I'll 
use stddef.h and submit another patch.
Thanks!

On 2015/12/8 17:10, Jerin Jacob wrote:
> On Tue, Dec 08, 2015 at 04:28:52PM +0800, Chao Zhu wrote:
>> This patch fixes the compile errors caused by lacking of "size_t" definition in rte_hash.h.
>>
>> 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..5046e9b 100644
>> --- a/lib/librte_hash/rte_hash.h
>> +++ b/lib/librte_hash/rte_hash.h
>> @@ -41,6 +41,7 @@
>>    */
>>   
>>   #include <stdint.h>
>> +#include <stdio.h>
> Thanks for the patch.
> The Same issue comes with arm64 GCC 5.2 compiler too.
> Shouldn't be stddef.h instead of stdio.h?
>
>>   
>>   #ifdef __cplusplus
>>   extern "C" {
>> -- 
>> 1.7.1
>>

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

* Re: [dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER
  2015-12-08  8:28 Chao Zhu
  2015-12-08  9:10 ` Jerin Jacob
@ 2015-12-08 10:05 ` Thomas Monjalon
  1 sibling, 0 replies; 7+ messages in thread
From: Thomas Monjalon @ 2015-12-08 10:05 UTC (permalink / raw)
  To: Chao Zhu; +Cc: dev

2015-12-08 16:28, Chao Zhu:
> This patch fixes the compile errors caused by lacking of "size_t" definition in rte_hash.h.
> 
> Signed-off-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>

Please Chao, could you provide the exact error and a Fixes: line in the
commit message?
Thanks

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

* Re: [dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER
  2015-12-08  8:28 Chao Zhu
@ 2015-12-08  9:10 ` Jerin Jacob
  2015-12-09  3:54   ` Chao Zhu
  2015-12-08 10:05 ` Thomas Monjalon
  1 sibling, 1 reply; 7+ messages in thread
From: Jerin Jacob @ 2015-12-08  9:10 UTC (permalink / raw)
  To: Chao Zhu; +Cc: dev

On Tue, Dec 08, 2015 at 04:28:52PM +0800, Chao Zhu wrote:
> This patch fixes the compile errors caused by lacking of "size_t" definition in rte_hash.h.
> 
> 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..5046e9b 100644
> --- a/lib/librte_hash/rte_hash.h
> +++ b/lib/librte_hash/rte_hash.h
> @@ -41,6 +41,7 @@
>   */
>  
>  #include <stdint.h>
> +#include <stdio.h>

Thanks for the patch.
The Same issue comes with arm64 GCC 5.2 compiler too.
Shouldn't be stddef.h instead of stdio.h?

>  
>  #ifdef __cplusplus
>  extern "C" {
> -- 
> 1.7.1
> 

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

* [dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER
@ 2015-12-08  8:28 Chao Zhu
  2015-12-08  9:10 ` Jerin Jacob
  2015-12-08 10:05 ` Thomas Monjalon
  0 siblings, 2 replies; 7+ messages in thread
From: Chao Zhu @ 2015-12-08  8:28 UTC (permalink / raw)
  To: dev

This patch fixes the compile errors caused by lacking of "size_t" definition in rte_hash.h.

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..5046e9b 100644
--- a/lib/librte_hash/rte_hash.h
+++ b/lib/librte_hash/rte_hash.h
@@ -41,6 +41,7 @@
  */
 
 #include <stdint.h>
+#include <stdio.h>
 
 #ifdef __cplusplus
 extern "C" {
-- 
1.7.1

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

end of thread, other threads:[~2015-12-09 20:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-09  4:11 [dpdk-dev] [PATCH] librte_hash: Fix compile errors on IBM POWER Chao Zhu
2015-12-09  4:40 ` Jerin Jacob
2015-12-09 20:22   ` Thomas Monjalon
  -- strict thread matches above, loose matches on Subject: below --
2015-12-08  8:28 Chao Zhu
2015-12-08  9:10 ` Jerin Jacob
2015-12-09  3:54   ` Chao Zhu
2015-12-08 10:05 ` 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).