From: David Hunt Date: Thu, 10 May 2018 01:25:38 +0000 (+0100) Subject: test/distributor: fix return type of thread function X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1d2ff358ff2fe236a17e22eeb28ecf013814f022;p=dpdk.git test/distributor: fix return type of thread function New warning with gcc 8.1: When casting the function pointer passed to rte_eal_remote_launch() as an lcore_function_t *, it expects the cast function to return an int, but instead it was returning void. Fixed to return an int. Fixes: c3eabff124e6 ("distributor: add unit tests") Cc: stable@dpdk.org Signed-off-by: David Hunt Acked-by: Pablo de Lara --- diff --git a/test/test/test_distributor_perf.c b/test/test/test_distributor_perf.c index 557715e132..edf1998ab0 100644 --- a/test/test/test_distributor_perf.c +++ b/test/test/test_distributor_perf.c @@ -31,7 +31,7 @@ struct worker_stats worker_stats[RTE_MAX_LCORE]; * worker thread used for testing the time to do a round-trip of a cache * line between two cores and back again */ -static void +static int flip_bit(volatile uint64_t *arg) { uint64_t old_val = 0; @@ -41,6 +41,7 @@ flip_bit(volatile uint64_t *arg) old_val = *arg; *arg = 0; } + return 0; } /*