[dpdk-dev] [PATCH] examples/quota_watermark: fix wrong function type casing

De Lara Guarch, Pablo pablo.de.lara.guarch at intel.com
Thu May 10 11:32:53 CEST 2018


Hi Jerin,

> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jerin Jacob
> Sent: Thursday, May 10, 2018 10:05 AM
> To: dev at dpdk.org
> Cc: thomas at monjalon.net; andy at warmcat.com; Jerin Jacob
> <jerin.jacob at caviumnetworks.com>; Richardson, Bruce
> <bruce.richardson at intel.com>; stable at dpdk.org
> Subject: [dpdk-dev] [PATCH] examples/quota_watermark: fix wrong function
> type casing
> 
> make pipeline_stage() and  send_stage() as lcore_function_t.
> Found this issue with gcc 8.1.
> 
> examples/quota_watermark/qw/main.c: In function ‘main’:
> examples/quota_watermark/qw/main.c:350:26: error: cast between
> incompatible function types from ‘void (*)(void *)’ to ‘int (*)(void *)’ [-
> Werror=cast-function-type] rte_eal_remote_launch((int (*)(void
> *))pipeline_stage,
>                           ^
> examples/quota_watermark/qw/main.c:357:24: error: cast between
> incompatible function types from ‘void (*)(void *)’ to ‘int (*)(void *)’ [-
> Werror=cast-function-type] rte_eal_remote_launch((int (*)(void *))send_stage,
> NULL, last_lcore_id);
> 
> Cc: bruce.richardson at intel.com
> Cc: stable at dpdk.org
> 
> Fixes: 1d6c3ee3321a ("examples/quota_watermark: initial import")

There is already a fix for this:

http://dpdk.org/dev/patchwork/patch/39564/



More information about the dev mailing list