DPDK patches and discussions
 help / color / mirror / Atom feed
From: "卢 毅" <luyi68@live.com>
To: "david.marchand@6wind.com" <david.marchand@6wind.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c caused by hpet
Date: Thu, 28 Jan 2016 14:16:40 +0000	[thread overview]
Message-ID: <KL1PR0401MB1301A913A318D66496DC6299A4DA0@KL1PR0401MB1301.apcprd04.prod.outlook.com> (raw)
In-Reply-To: <BLU436-SMTP157815B37FD696F25A704E3A4F10@phx.gbl>

Fix compile error when enable CONFIG_RTE_LIBEAL_USE_HPET.

Error messages:
/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>
Acked-by: David Marchand <david.marchand@6wind.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


  parent reply	other threads:[~2016-01-28 14:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-03 14:49 [dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c Yi Lu
2016-01-04  9:01 ` David Marchand
2016-01-28 14:16 ` 卢 毅 [this message]
2016-03-02 16:45   ` [dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c caused by hpet Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=KL1PR0401MB1301A913A318D66496DC6299A4DA0@KL1PR0401MB1301.apcprd04.prod.outlook.com \
    --to=luyi68@live.com \
    --cc=david.marchand@6wind.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).