[dpdk-stable] [dpdk-dev] [PATCH v2 2/2] eal: fix build issue

Thomas Monjalon thomas at monjalon.net
Mon Nov 12 13:28:44 CET 2018


07/11/2018 07:59, Jerin Jacob:
> Some toolchain has fls() definition in string.h as argument type int,
> which is conflicting uint32_t argument type.
> 
> /export/dpdk.org/lib/librte_eal/common/rte_reciprocal.c:47:19:
> error: conflicting types for ‘fls’
>  static inline int fls(uint32_t x)
>                   ^~~
> 
> /opt/marvell-tools-201/aarch64-marvell-elf/include/strings.h:59:6:
> note: previous declaration of ‘fls’ was here
>  int  fls(int) __pure2;
> 
> FreeBSD string.h also has fls() with argument as int type.
> https://www.freebsd.org/cgi/man.cgi?query=fls&sektion=3
> 
> Fixing the conflict by using rte version of fls.
> 
> Fixes: ffe3ec811ef5 ("sched: introduce reciprocal divide")
> Fixes: faf2b25c9f80 ("fm10k: support VMDQ in multi-queue configuration")
> Cc: stable at dpdk.org
> 
> Suggested-by: Thomas Monjalon <thomas at monjalon.net>
> Signed-off-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>

Series applied, thanks





More information about the stable mailing list