[dpdk-users] compile warning in dpdk lib header files "error: inlining failed in call .... call is unlikely and code size would grow"

Stephen Hemminger stephen at networkplumber.org
Fri Sep 8 21:08:14 CEST 2017


On Fri, 8 Sep 2017 18:45:52 +0000
Yuyong Zhang <yuyong.zhang at casa-systems.com> wrote:

> Hi,
> 
> 
> 
> I got lots of compile warning when integrating dpdk library such as:
> 
> 
> 
> : error: inlining failed in call to ‘rte_mempool_ops_dequeue_bulk.part.1’: call is unlikely and code size would grow [-Werror=inline]
> 
> 
> 
> : error: inlining failed in call to ‘rte_pktmbuf_free": call is unlikely and code size would grow [-Werror=inline]
> 
> 
> 
> Because company policy strictly enforces "waring as error", I have to fix those issues.

Turn off the warning, or fix the policy.

DPDK does lots of inlining and in some cases the code will be used in unlikely branchs.


More information about the users mailing list