[dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c caused by hpet

Thomas Monjalon thomas.monjalon at 6wind.com
Wed Mar 2 17:45:06 CET 2016


2016-01-28 14:16, 卢 毅:
> 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")

Just looking at the first letters of this SHA1 gives a hint ;)

> Signed-off-by: Yi Lu <luyi68 at live.com>
> Acked-by: David Marchand <david.marchand at 6wind.com>

Applied, thanks


More information about the dev mailing list