From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx.bisdn.de (mx.bisdn.de [185.27.182.31]) by dpdk.org (Postfix) with ESMTP id 9C9C37E89 for ; Wed, 22 Oct 2014 10:33:43 +0200 (CEST) Received: from [192.168.1.43] (42.Red-79-146-253.dynamicIP.rima-tde.net [79.146.253.42]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.bisdn.de (Postfix) with ESMTPSA id 7B2BAA2DA9; Wed, 22 Oct 2014 10:42:02 +0200 (CEST) Message-ID: <54476DF9.6060906@bisdn.de> Date: Wed, 22 Oct 2014 10:42:33 +0200 From: Marc Sune User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Thomas Monjalon References: <1ED644BD7E0A5F4091CF203DAFB8E4CC01D8288F@SHSMSX101.ccr.corp.intel.com> <1413961851-13230-1-git-send-email-marc.sune@bisdn.de> <2234340.4n5qb1rBlX@xps13> In-Reply-To: <2234340.4n5qb1rBlX@xps13> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] KNI: fix compilation warning 'missing-field-initializers' X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2014 08:33:43 -0000 The mutex needs to be initialized to RTE_SPINLOCK_INITIALIZER(0) too, or move the initialization of the mutex to rte_kni_init(). I can prepare a second patch with one or the other option, if you want. marc On 22/10/14 10:37, Thomas Monjalon wrote: > 2014-10-22 09:10, Marc Sune: >> Fix for compilation warning 'missing-field-initializers' for some >> GCC and clang versions introduced in commit 0c6bc8e >> >> Signed-off-by: Marc Sune > It's not needed to initialize all fields. > This should be sufficient: > +static struct rte_kni_memzone_pool kni_memzone_pool = {.initialized = 0}; >