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:32:39 +0100 Message-ID: <7525503.S6sahj4VeJ@xps> References: <20180121222135.26160-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Pavan Nikhilesh To: dev@dpdk.org Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id EEE4331FC for ; Sun, 21 Jan 2018 23:33:17 +0100 (CET) In-Reply-To: <20180121222135.26160-1-thomas@monjalon.net> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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