From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH] examples/eventdev: fix build with GCC < 5 Date: Sun, 21 Jan 2018 22:40:42 +0000 Message-ID: References: <20180121222135.26160-1-thomas@monjalon.net> <7525503.S6sahj4VeJ@xps> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Pavan Nikhilesh To: Thomas Monjalon , dev@dpdk.org Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 835F52B96 for ; Sun, 21 Jan 2018 23:40:45 +0100 (CET) In-Reply-To: <7525503.S6sahj4VeJ@xps> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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