From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] examples: fix typdef in performance thread app Date: Mon, 14 May 2018 12:25:58 +0200 Message-ID: <1534703.MBAexOQAkQ@xps> References: <20180510053112.25491-1-david.hunt@intel.com> <20180514025315.87149-1-david.hunt@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, john.mcnamara@intel.com, stable@dpdk.org To: David Hunt Return-path: In-Reply-To: <20180514025315.87149-1-david.hunt@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 > Acked-by: Pablo de Lara Title: examples/performance-thread: fix return type of threads Applied, thanks