DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c
@ 2016-01-03 14:35 Yi Lu
  0 siblings, 0 replies; 6+ messages in thread
From: Yi Lu @ 2016-01-03 14:35 UTC (permalink / raw)
  To: david.marchand; +Cc: dev

Error message:
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c: In function ‘rte_eal_hpet_init’:
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: implicit declaration of function ‘rte_thread_setname’ [-Werror=implicit-function-declaration]
  ret = rte_thread_setname(msb_inc_thread_id, thread_name);
  ^
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: nested extern declaration of ‘rte_thread_setname’ [-Werror=nested-externs]
cc1: all warnings being treated as errors

Fixes: badb3688ffa8 ("eal/linux: fix build with glibc < 2.12")

Signed-off-by: Yi Lu <luyi68@live.com>
---
 lib/librte_eal/linuxapp/eal/eal_timer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/linuxapp/eal/eal_timer.c b/lib/librte_eal/linuxapp/eal/eal_timer.c
index 9ceff33..bcadf09 100644
--- a/lib/librte_eal/linuxapp/eal/eal_timer.c
+++ b/lib/librte_eal/linuxapp/eal/eal_timer.c
@@ -50,6 +50,7 @@
 #include <rte_memory.h>
 #include <rte_memzone.h>
 #include <rte_eal.h>
+#include <rte_lcore.h>
 #include <rte_debug.h>
 
 #include "eal_private.h"
-- 
1.8.3.1

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

* Re: [dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c
  2016-01-03 14:49 Yi Lu
@ 2016-01-04  9:01 ` David Marchand
  0 siblings, 0 replies; 6+ messages in thread
From: David Marchand @ 2016-01-04  9:01 UTC (permalink / raw)
  To: Yi Lu; +Cc: dev

Hello,

Four mails for this ? :-)
Please test off-list when you are not sure how to send patches.

On Sun, Jan 3, 2016 at 3:49 PM, Yi Lu <luyi68@live.com> wrote:

> Error message:
> /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c: In function
> ‘rte_eal_hpet_init’:
> /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error:
> implicit declaration of function ‘rte_thread_setname’
> [-Werror=implicit-function-declaration]
>   ret = rte_thread_setname(msb_inc_thread_id, thread_name);
>   ^
> /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error:
> nested extern declaration of ‘rte_thread_setname’ [-Werror=nested-externs]
> cc1: all warnings being treated as errors
>
> Fixes: badb3688ffa8 ("eal/linux: fix build with glibc < 2.12")
>


Well, this problem was not seen before as you need to enable hpet support.
Title and commitlog should, at least, mention hpet.



> Signed-off-by: Yi Lu <luyi68@live.com>
> ---
>  lib/librte_eal/linuxapp/eal/eal_timer.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/lib/librte_eal/linuxapp/eal/eal_timer.c
> b/lib/librte_eal/linuxapp/eal/eal_timer.c
> index 9ceff33..bcadf09 100644
> --- a/lib/librte_eal/linuxapp/eal/eal_timer.c
> +++ b/lib/librte_eal/linuxapp/eal/eal_timer.c
> @@ -50,6 +50,7 @@
>  #include <rte_memory.h>
>  #include <rte_memzone.h>
>  #include <rte_eal.h>
> +#include <rte_lcore.h>
>  #include <rte_debug.h>
>
>  #include "eal_private.h"
>


Initial patch preferred eal_thread.h inclusion, but since
rte_thread_setname is defined in rte_lcore.h, I am fine with your patch.
So ack once the commitlog mentions hpet.

Thanks.

-- 
David Marchand

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

* [dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c
@ 2016-01-03 14:49 Yi Lu
  2016-01-04  9:01 ` David Marchand
  0 siblings, 1 reply; 6+ messages in thread
From: Yi Lu @ 2016-01-03 14:49 UTC (permalink / raw)
  To: david.marchand; +Cc: dev

Error message:
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c: In function ‘rte_eal_hpet_init’:
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: implicit declaration of function ‘rte_thread_setname’ [-Werror=implicit-function-declaration]
  ret = rte_thread_setname(msb_inc_thread_id, thread_name);
  ^
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: nested extern declaration of ‘rte_thread_setname’ [-Werror=nested-externs]
cc1: all warnings being treated as errors

Fixes: badb3688ffa8 ("eal/linux: fix build with glibc < 2.12")

Signed-off-by: Yi Lu <luyi68@live.com>
---
 lib/librte_eal/linuxapp/eal/eal_timer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/linuxapp/eal/eal_timer.c b/lib/librte_eal/linuxapp/eal/eal_timer.c
index 9ceff33..bcadf09 100644
--- a/lib/librte_eal/linuxapp/eal/eal_timer.c
+++ b/lib/librte_eal/linuxapp/eal/eal_timer.c
@@ -50,6 +50,7 @@
 #include <rte_memory.h>
 #include <rte_memzone.h>
 #include <rte_eal.h>
+#include <rte_lcore.h>
 #include <rte_debug.h>
 
 #include "eal_private.h"
-- 
1.8.3.1

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

* [dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c
@ 2016-01-03 14:46 luyi68
  0 siblings, 0 replies; 6+ messages in thread
From: luyi68 @ 2016-01-03 14:46 UTC (permalink / raw)
  To: david.marchand; +Cc: dev

From: Yi Lu <luyi68@live.com>

Error message:
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c: In function ‘rte_eal_hpet_init’:
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: implicit declaration of function ‘rte_thread_setname’ [-Werror=implicit-function-declaration]
  ret = rte_thread_setname(msb_inc_thread_id, thread_name);
  ^
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: nested extern declaration of ‘rte_thread_setname’ [-Werror=nested-externs]
cc1: all warnings being treated as errors

Fixes: badb3688ffa8 ("eal/linux: fix build with glibc < 2.12")

Signed-off-by: Yi Lu <luyi68@live.com>
---
 lib/librte_eal/linuxapp/eal/eal_timer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/linuxapp/eal/eal_timer.c b/lib/librte_eal/linuxapp/eal/eal_timer.c
index 9ceff33..bcadf09 100644
--- a/lib/librte_eal/linuxapp/eal/eal_timer.c
+++ b/lib/librte_eal/linuxapp/eal/eal_timer.c
@@ -50,6 +50,7 @@
 #include <rte_memory.h>
 #include <rte_memzone.h>
 #include <rte_eal.h>
+#include <rte_lcore.h>
 #include <rte_debug.h>
 
 #include "eal_private.h"
-- 
1.8.3.1

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

* [dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c
@ 2016-01-03 14:43 Yi Lu
  0 siblings, 0 replies; 6+ messages in thread
From: Yi Lu @ 2016-01-03 14:43 UTC (permalink / raw)
  To: david.marchand; +Cc: dev

Error message:
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c: In function ‘rte_eal_hpet_init’:
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: implicit declaration of function ‘rte_thread_setname’ [-Werror=implicit-function-declaration]
  ret = rte_thread_setname(msb_inc_thread_id, thread_name);
  ^
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: nested extern declaration of ‘rte_thread_setname’ [-Werror=nested-externs]
cc1: all warnings being treated as errors

Fixes: badb3688ffa8 ("eal/linux: fix build with glibc < 2.12")

Signed-off-by: Yi Lu <luyi68@live.com>
---
 lib/librte_eal/linuxapp/eal/eal_timer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/linuxapp/eal/eal_timer.c b/lib/librte_eal/linuxapp/eal/eal_timer.c
index 9ceff33..bcadf09 100644
--- a/lib/librte_eal/linuxapp/eal/eal_timer.c
+++ b/lib/librte_eal/linuxapp/eal/eal_timer.c
@@ -50,6 +50,7 @@
 #include <rte_memory.h>
 #include <rte_memzone.h>
 #include <rte_eal.h>
+#include <rte_lcore.h>
 #include <rte_debug.h>
 
 #include "eal_private.h"
-- 
1.8.3.1

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

* [dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c
@ 2016-01-03 14:22 Yi Lu
  0 siblings, 0 replies; 6+ messages in thread
From: Yi Lu @ 2016-01-03 14:22 UTC (permalink / raw)
  To: david.marchand; +Cc: dev

Error message:
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c: In function ‘rte_eal_hpet_init’:
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: implicit declaration of function ‘rte_thread_setname’ [-Werror=implicit-function-declaration]
  ret = rte_thread_setname(msb_inc_thread_id, thread_name);
  ^
/root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: nested extern declaration of ‘rte_thread_setname’ [-Werror=nested-externs]
cc1: all warnings being treated as errors

Fixes: badb3688ffa8 ("eal/linux: fix build with glibc < 2.12")

Signed-off-by: Yi Lu <luyi68@live.com>
---
 lib/librte_eal/linuxapp/eal/eal_timer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/linuxapp/eal/eal_timer.c b/lib/librte_eal/linuxapp/eal/eal_timer.c
index 9ceff33..bcadf09 100644
--- a/lib/librte_eal/linuxapp/eal/eal_timer.c
+++ b/lib/librte_eal/linuxapp/eal/eal_timer.c
@@ -50,6 +50,7 @@
 #include <rte_memory.h>
 #include <rte_memzone.h>
 #include <rte_eal.h>
+#include <rte_lcore.h>
 #include <rte_debug.h>
 
 #include "eal_private.h"
-- 
1.8.3.1

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

end of thread, other threads:[~2016-01-04  9:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-03 14:35 [dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c Yi Lu
  -- strict thread matches above, loose matches on Subject: below --
2016-01-03 14:49 Yi Lu
2016-01-04  9:01 ` David Marchand
2016-01-03 14:46 luyi68
2016-01-03 14:43 Yi Lu
2016-01-03 14:22 Yi Lu

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