From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 22A4F23B for ; Tue, 21 Nov 2017 14:19:30 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id CA27F20AEB; Tue, 21 Nov 2017 08:19:29 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 21 Nov 2017 08:19:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=LG2IqyoN9v+0nkFUB JUutSH5mFs9QtwCTHM/n5G8zjY=; b=bPTU7esebY5YJ2H4m1s3N7XMws0LfJNVS S5o/XzXNQY3z1BfxSL+ecErcN31LAUZ6yM/ivAZPSGjXjHD3CNZ0hEeTjLOjgkaj UcrZrf1C6d9V+DFPwHPlEFGGqwpPJQ18EmApHvL2d3guevbK2NZvXfB0QNHS2LaI eWIvpxcRAtQSEWs8yi/ufOYZMGVwqqboue+nDjhA0tRI2PWDn+F9cv34UUr2PPn5 /ytc+XWoreB7Qmc7HQstiITPGuxHifDNsZAEDId4ULfLipHl7puIq5lJDODZjEhE NDQzkgXs+Whhh6eJxKNwzH69Xy6geNqz7xoJ0/WoIMW4RTG+upqbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=LG2Iqy oN9v+0nkFUBJUutSH5mFs9QtwCTHM/n5G8zjY=; b=ZsysJ2d/3EXbzVB0pXkk4e DSWWkVQFObdQSzG7VPxT8cHRUBr/EZ5QztXhsuMzWMZ2g7pPrqJKRNXR7HuuiCg9 rmg+ZqKawveqKLG2fUNn738y+EEnd5s6eHLO5EF6ChlzNXqk+z9rs9Th5RvwqOxL EyjdbOTa7Iu8e/kefghnDtBDN3AXqPUtCRAfDiseQCnhLl2vPM+EgtrL2ELuBPbY Hxxy3GDbxgrm76pnscOh0axPasxpyr73cAt5R6neJs+5D9cLtER6kDIFcIljl/7T JlxqiRC+zNDn/SY1vyAtNwBxRQGgcztBoUerY8Zyq2/iq2Fv7Q5mGsR5y1VjQ+2w == X-ME-Sender: Received: from localhost.localdomain (unknown [180.158.62.0]) by mail.messagingengine.com (Postfix) with ESMTPA id 638D2247A9; Tue, 21 Nov 2017 08:19:26 -0500 (EST) From: Yuanhan Liu To: Yi Yang Cc: Harry van Haaren , dpdk stable Date: Tue, 21 Nov 2017 21:15:44 +0800 Message-Id: <1511270333-31002-2-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> References: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'service: fix build with gcc 4.9' has been queued to stable release 17.08.1 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: Tue, 21 Nov 2017 13:19:30 -0000 Hi, FYI, your patch has been queued to stable release 17.08.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From a1eb0d497abf5963fbbf66f1a7aec5c84b8c5282 Mon Sep 17 00:00:00 2001 From: Yi Yang Date: Thu, 21 Sep 2017 09:50:43 +0800 Subject: [PATCH] service: fix build with gcc 4.9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit ca13673513b656e632d5b348de2aa448b55ba9de ] Some compilers detect this error: error: ‘ids[0]’ may be used uninitialized in this function ret = rte_service_map_lcore_set(i, ids[lcore_iter], 1); It can be reproduced very easily on Fedora 21 with gcc-4.9.2-6.fc21.x86_64. Fixes: 21698354c832 ("service: introduce service cores concept") Signed-off-by: Yi Yang Acked-by: Harry van Haaren --- lib/librte_eal/common/rte_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/rte_service.c b/lib/librte_eal/common/rte_service.c index 7efb76d..57ff4c1 100644 --- a/lib/librte_eal/common/rte_service.c +++ b/lib/librte_eal/common/rte_service.c @@ -407,7 +407,7 @@ rte_service_start_with_defaults(void) uint32_t count = rte_service_get_count(); int32_t lcore_iter = 0; - uint32_t ids[RTE_MAX_LCORE]; + uint32_t ids[RTE_MAX_LCORE] = {0}; int32_t lcore_count = rte_service_lcore_list(ids, RTE_MAX_LCORE); if (lcore_count == 0) -- 2.7.4