From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 862118D9F for ; Sun, 20 May 2018 15:08:42 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 35BA521D23; Sun, 20 May 2018 09:08:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 20 May 2018 09:08:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=wSLgw1ljNZu88MJww xI0DEJr+jMwjZ885WTu9xuO/fk=; b=Tk2zY4AyNagSdZMBIO2Ie0ybZoYoGxh2Y E+tBGUJGajLMs2qPNs6PvTbwsafUepVVpWq/1c3awiY1mfUtZ5f58DrJ6x30rq0P 8bZ137eFjyih00nXEJ9svCHOehZIkvFWVv3ISNJPgW6B0aTW0XbnJCzkMBaHkc3k s27+GiUA2SXfK1i8qLsMVYMY6JusxumLIIWifBk4s14XvOJMj/Mxkf1WU5ZSQweX q11WyRCR0HdfbIO13oFjdwKVfMCyu4JXn7QIxwWTWv8N0wNXD6T1SS7v0LmrsIm0 S0A9+XAM7w6O5IKzHwmQLfBr/3zG8InpTE217H7pgXwuYMDVumjlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=wSLgw1ljNZu88MJwwxI0DEJr+jMwjZ885WTu9xuO/fk=; b=DeDFe+1v 7yoKsOzU9YprFTen8odZDa3FJmA08ObshSjxLGTt6EGvQKYldF6WnbCquS/rvNFK 8Sk+ZL8vmqePZBiMbNHxGPJa094goddBqkpSEKmagut2k4EibtZKHCzLWhMUOdXy IyKXcloxVeqng7ksqqbRKhNVFhFcikGsIdfKsFDFgBYCRvq6ezbeT0NvnYS5H7EE E8wNVu5lHEKsxqd7ZYrXYSQdeq95CnhsHHCGzMwVGlrSC7wHGApB3Ur+pbYFVStL qPbMvWmYaw8XN1X2B5EwzYwlcPwe/1CXKGLjteRHXdLC7H2vn9X7fF/ya7IuMf9c 3710HZUJTEqNEg== X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from yuanhanliu-NB0.tencent.com (unknown [223.74.148.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 6A8131025C; Sun, 20 May 2018 09:08:40 -0400 (EDT) From: Yuanhan Liu To: David Hunt Cc: Pablo de Lara , dpdk stable Date: Sun, 20 May 2018 21:02:22 +0800 Message-Id: <20180520130246.16287-6-yliu@fridaylinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180520130246.16287-1-yliu@fridaylinux.org> References: <20180520130246.16287-1-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'test/distributor: fix return type of thread function' has been queued to LTS release 17.11.3 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2018 13:08:42 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/27/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 8d1bd359b6912f68699fafff3f5285d5ed6831d0 Mon Sep 17 00:00:00 2001 From: David Hunt Date: Thu, 10 May 2018 02:25:38 +0100 Subject: [PATCH] test/distributor: fix return type of thread function [ upstream commit 1d2ff358ff2fe236a17e22eeb28ecf013814f022 ] 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") Signed-off-by: David Hunt Acked-by: Pablo de Lara --- test/test/test_distributor_perf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test/test_distributor_perf.c b/test/test/test_distributor_perf.c index 7d69887b9..4a62a9226 100644 --- a/test/test/test_distributor_perf.c +++ b/test/test/test_distributor_perf.c @@ -60,7 +60,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; @@ -70,6 +70,7 @@ flip_bit(volatile uint64_t *arg) old_val = *arg; *arg = 0; } + return 0; } /* -- 2.11.0