[dpdk-dev] [PATCH v2] examples: fix typdef in performance thread app

Thomas Monjalon thomas at monjalon.net
Mon May 14 12:25:58 CEST 2018


14/05/2018 04:53, David Hunt:
> The function pthread_create() expects void *(*func) (void *)
> for function pointer, however, lthread_func_t was defined as
> void (*func) (void *), so now gcc 8.1 warns that the cast is
> incorrect, causing a compilation failure. This patch changes
> the declaration of lthread_func_t from returning a void to
> returning a void*, and then changes the sample app in the
> relevant places that are affected by the typedef change.
> 
> Fixes: 116819b9ed0d ("examples/performance-thread: add lthread subsystem")
> 
> Signed-off-by: David Hunt <david.hunt at intel.com>
> Acked-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>

Title: examples/performance-thread: fix return type of threads

Applied, thanks





More information about the dev mailing list