From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 7D2BD4CE6 for ; Fri, 22 Jul 2016 16:51:35 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 22 Jul 2016 07:51:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,405,1464678000"; d="scan'208";a="1011987022" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by fmsmga001.fm.intel.com with ESMTP; 22 Jul 2016 07:51:20 -0700 Received: from irsmsx155.ger.corp.intel.com (163.33.192.3) by IRSMSX152.ger.corp.intel.com (163.33.192.66) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 22 Jul 2016 15:51:19 +0100 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.24]) by irsmsx155.ger.corp.intel.com ([169.254.14.102]) with mapi id 14.03.0248.002; Fri, 22 Jul 2016 15:51:18 +0100 From: "Burakov, Anatoly" To: "Yigit, Ferruh" , "dev@dpdk.org" Thread-Topic: [PATCH] examples/l2fwd-ivshmem: fix icc compile error Thread-Index: AQHR5CNfE58CCS5F4UKvViT/CaJiNKAkiKxg Date: Fri, 22 Jul 2016 14:51:17 +0000 Message-ID: References: <1469196816-29395-1-git-send-email-ferruh.yigit@intel.com> In-Reply-To: <1469196816-29395-1-git-send-email-ferruh.yigit@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzBiYjA3NjQtMTZlYS00OGU2LWE0ZmMtNzJjOGRhNDBhMjkxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkJGTU5nbFU2WUVKTW9EK3dXMmwzUm05KzJKUjVPZHJGRlZ5WitWeEd4Yms9In0= x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples/l2fwd-ivshmem: fix icc compile error 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: Fri, 22 Jul 2016 14:51:35 -0000 > -----Original Message----- > From: Yigit, Ferruh > Sent: Friday, July 22, 2016 3:14 PM > To: dev@dpdk.org > Cc: Burakov, Anatoly > Subject: [PATCH] examples/l2fwd-ivshmem: fix icc compile error >=20 > icc version 16.0.2, compile error: >=20 > =3D=3D host > CC host.o > /root/development/dpdk/examples/l2fwd-ivshmem/host/host.c(157): > error #3656: variable "total_vm_packets_dropped" > may be used before its value is set > total_vm_packets_dropped +=3D ctrl->vm_ports[portid].stats.droppe= d; > ^ >=20 > Fixes: 6aa497249172 ("examples/l2fwd-ivshmem: import sample > application") >=20 > Signed-off-by: Ferruh Yigit > --- > examples/l2fwd-ivshmem/host/host.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/examples/l2fwd-ivshmem/host/host.c b/examples/l2fwd- > ivshmem/host/host.c > index cd284b7..da7b00d 100644 > --- a/examples/l2fwd-ivshmem/host/host.c > +++ b/examples/l2fwd-ivshmem/host/host.c > @@ -110,7 +110,8 @@ static void > print_stats(void) > { > uint64_t total_packets_dropped, total_packets_tx, total_packets_rx; > - uint64_t total_vm_packets_dropped, total_vm_packets_tx, > total_vm_packets_rx; > + uint64_t total_vm_packets_dropped =3D 0; > + uint64_t total_vm_packets_tx, total_vm_packets_rx; > unsigned portid; >=20 > total_packets_dropped =3D 0; > -- > 2.7.4 Acked-by: Anatoly Burakov