From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] examples/eventdev: fix build with GCC < 5 Date: Sun, 21 Jan 2018 23:41:58 +0100 Message-ID: <1717907.XnPDdZBNct@xps> References: <20180121222135.26160-1-thomas@monjalon.net> <7525503.S6sahj4VeJ@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Ferruh Yigit , Pavan Nikhilesh Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 46D8FDD2 for ; Sun, 21 Jan 2018 23:42:36 +0100 (CET) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 21/01/2018 23:40, Ferruh Yigit: > On 1/21/2018 10:32 PM, Thomas Monjalon wrote: > > Forgot the Fixes: tags, > > > > 21/01/2018 23:21, Thomas Monjalon: > >> Some errors were seen with GCC 4.8 and 4.9. > >> It looks to be a bug fixed in GCC 5. > >> > >> examples/eventdev_pipeline/pipeline_worker_generic.c:474:4: error: > >> missing initializer for field 'queue_id' of 'struct ' > >> > >> examples/eventdev_pipeline/pipeline_worker_generic.c:475:3: error: > >> missing initializer for field 'priority' of 'struct ' > >> > >> examples/eventdev_pipeline/pipeline_worker_tx.c:630:2: error: > >> missing initializer for field 'queue_id' of 'struct ' > >> > >> The workaround is to not use initializer statement, > >> but to use memset and standard assignment. > > > > Fixes: 84dde5de10a2 ("examples/eventdev: support Rx adapter") > > Fixes: fa8054c8c889 ("examples/eventdev: add thread safe Tx worker pipeline") > > > >> Signed-off-by: Thomas Monjalon > > Reviewed-by: Ferruh Yigit Applied