[dpdk-dev] [PATCH] test: fix wrong function type casing

De Lara Guarch, Pablo pablo.de.lara.guarch at intel.com
Thu May 10 17:58:46 CEST 2018



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jerin Jacob
> Sent: Thursday, May 10, 2018 9:29 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] test: fix wrong function type casing
> 
> make flip_bit() as lcore_function_t.
> Found this issue with gcc 8.1
> 
> test/test/test_distributor_perf.c: In function ‘time_cache_line_switch’:
> test/test/test_distributor_perf.c:59:24: warning: cast between incompatible
> function types from ‘void (*)(volatile uint64_t *)’ {aka ‘void (*) (volatile long
> unsigned int *)’} to ‘int (*)(void *)’
> [-Wcast-function-type] rte_eal_remote_launch((lcore_function_t *)flip_bit,
> &data[0], slaveid);
> 
> Cc: bruce.richardson at intel.com
> Cc: stable at dpdk.org
> 
> Fixes: c3eabff124e6 ("distributor: add unit tests")
> 
> Signed-off-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>
> ---

Already fixed here:

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



More information about the dev mailing list