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 6FEB47D4E for ; Thu, 21 Sep 2017 14:41:48 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 18D0421002; Thu, 21 Sep 2017 08:41:48 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 21 Sep 2017 08:41:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; 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:x-sasl-enc; s=mesmtp; bh=vPBnM/hW3MXSyMc EkDlwEBgaCaYxhsVdt+mNcXelF/o=; b=cdYnLWWTPu46WFu2bW2gBLEpy7Rz1PZ pE1u5R5U65a/RtZWgwgt+3kb6TL8y61/M/AGKP7xP3bc9eVetboNV5Dg48aOXcPf 8v0Kz51sztk+xf1XrWc3y3TJb/iPXeFuN9QZmLV86e2LlntmARfeerX/fCC7ISJT Js0mz1CneVRs= 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:x-sasl-enc; s= fm1; bh=vPBnM/hW3MXSyMcEkDlwEBgaCaYxhsVdt+mNcXelF/o=; b=J0M6fUiM uEOIEvy76JK13C0lVFrZm3Jby1GyX2xp6qb+xmHCFECw/BbTqDAdeJ5MXn6Ap2X7 5nnuWLmNouSWg02NXwSMUJm96TQrcpkZ68TfmOq3ioHZH0qwZcmPXuG9NVkuG3K9 /chDhC/vViuGyyHDIXsCXPQE7iG8bUsFtLu7ok2ijOblKDMsmCn7ljHbyfXZqa9I q837DUmYQ1Vd3TbG6hPFFlx0hEyU7Uhv+70LteqQUOra53Ir4S8aEVAH+d62cu7Q Qfofu267vz3GxLbMBsjkvE2Fw6slQKwugKDK8SWKxVwt/4dIxXmQ07hpxHjpE4ZS yNMlZhS5XTYicQ== X-ME-Sender: X-Sasl-enc: 65TsfZY7dzxl6gxGZ7xS/QGGknElBevhyRXe5Wyj+DLl 1505997707 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id B39FD7E187; Thu, 21 Sep 2017 08:41:47 -0400 (EDT) From: Thomas Monjalon To: "Yang, Yi Y" Cc: dev@dpdk.org, "Van Haaren, Harry" , nelio.laranjeiro@6wind.com Date: Thu, 21 Sep 2017 14:41:46 +0200 Message-ID: <4430088.xROSz6HfYO@xps> In-Reply-To: References: <1505958643-21203-1-git-send-email-yi.y.yang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2] service: fix build error "ids uninitialized in rte_service_map_lcore_set" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Sep 2017 12:41:48 -0000 21/09/2017 13:55, Van Haaren, Harry: > > From: Yang, Yi Y > > Sent: Thursday, September 21, 2017 2:51 AM > > To: dev@dpdk.org > > Cc: Van Haaren, Harry ; Yang, Yi Y > > > > Subject: [PATCH v2] service: fix build error "ids uninitialized in > > rte_service_map_lcore_set" > >=20 > > v1->v2 > > - Change title to more descriptive one > > - Add issue reproduce information to git log body > >=20 > > On current master tree, normal DPDK make will result in > > the below error: > >=20 > > error: =E2=80=98ids[0]=E2=80=99 may be used uninitialized in this > > function [-Werror=3Dmaybe-uninitialized] > > ret =3D rte_service_map_lcore_set(i, ids[lcore_iter], 1); > >=20 > > It can be reproduced very easily on Fedora 21 with > > gcc-4.9.2-6.fc21.x86_64. =46ixes: 21698354c832 ("service: introduce service cores concept") Cc: stable@dpdk.org > > It is fixed after applied this patch. > >=20 > > Signed-off-by: Yi Yang >=20 > +CC Thomas, please pull this asap, as it causes build issues on various G= CC/OS versions. Most of compilers do not raise an error. It seems specific to gcc 4.9. Nelio reported the same error with gcc 4.9. Changing the title to "service: fix build with gcc 4.9" > Acked-by: Harry van Haaren Applied, thanks