From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 7B47C7E80 for ; Wed, 22 Oct 2014 10:04:16 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 22 Oct 2014 01:12:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,767,1406617200"; d="scan'208";a="593607161" Received: from pgsmsx103.gar.corp.intel.com ([10.221.44.82]) by orsmga001.jf.intel.com with ESMTP; 22 Oct 2014 01:12:33 -0700 Received: from kmsmsx151.gar.corp.intel.com (172.21.73.86) by PGSMSX103.gar.corp.intel.com (10.221.44.82) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 22 Oct 2014 16:11:18 +0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by KMSMSX151.gar.corp.intel.com (172.21.73.86) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 22 Oct 2014 16:11:18 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.202]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.44]) with mapi id 14.03.0195.001; Wed, 22 Oct 2014 16:11:17 +0800 From: "Liu, Jijiang" To: Marc Sune , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] KNI: fix compilation warning 'missing-field-initializers' Thread-Index: AQHP7cd+/jOYScIPFkOIeA+CA5+xUZw7w2Lw Date: Wed, 22 Oct 2014 08:11:15 +0000 Message-ID: <1ED644BD7E0A5F4091CF203DAFB8E4CC01D82934@SHSMSX101.ccr.corp.intel.com> References: <1ED644BD7E0A5F4091CF203DAFB8E4CC01D8288F@SHSMSX101.ccr.corp.intel.com> <1413961851-13230-1-git-send-email-marc.sune@bisdn.de> In-Reply-To: <1413961851-13230-1-git-send-email-marc.sune@bisdn.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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:04:17 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Marc Sune > Sent: Wednesday, October 22, 2014 3:11 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] KNI: fix compilation warning 'missing-field- > initializers' >=20 > Fix for compilation warning 'missing-field-initializers' for some GCC and= clang > versions introduced in commit 0c6bc8e >=20 > Signed-off-by: Marc Sune > --- > lib/librte_kni/rte_kni.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) >=20 > diff --git a/lib/librte_kni/rte_kni.c b/lib/librte_kni/rte_kni.c index > f64a0a8..de29b99 100644 > --- a/lib/librte_kni/rte_kni.c > +++ b/lib/librte_kni/rte_kni.c > @@ -131,7 +131,14 @@ static void kni_free_mbufs(struct rte_kni *kni); > static void kni_allocate_mbufs(struct rte_kni *kni); >=20 > static volatile int kni_fd =3D -1; > -static struct rte_kni_memzone_pool kni_memzone_pool =3D {0}; > +static struct rte_kni_memzone_pool kni_memzone_pool =3D { > + .initialized =3D 0, > + .max_ifaces =3D 0, > + .slots =3D 0, > + .mutex =3D RTE_SPINLOCK_INITIALIZER, > + .free =3D NULL, > + .free_tail =3D NULL > +}; >=20 > static const struct rte_memzone * > kni_memzone_reserve(const char *name, size_t len, int socket_id, > -- > 1.7.10.4 Acked-by: Jijiang Liu