From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 79E871F5 for ; Wed, 6 Apr 2016 15:50:15 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id 191so58966393wmq.0 for ; Wed, 06 Apr 2016 06:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=4h4BOpNO69qie3dKHcyH8X9n17Gio/VLE5jMdPnPUrs=; b=lMzAaCeJyv7MO4MvAf/m7ydyi5yuJ0LyXUqK9/TCmeXLpzQzbbWt8CsLETY9aqn1jP 3H+/cVYINUg4r6fcfNEChOn6ni9w08r9NZqK6q8iji3ZPEuHEd9mRdamU7YAMSyZwiqp JMzUOzqHlft1xwX/esr+mlGm/g8Aq0kSgjZIPmvEpxCOhXOsxVS4ZN8OT+W13tvUgtVc 01GWNUmMLtmuz5oPcYZmPolMuxGztBoue19R24KqJ0wHO108ZBHWu5Dlz6krsGOeFhqm 2HhSy8ECnNeZHToacFSR8jwSq2uRS+HwdK8f3wnc4v7MGkKC0VqziGeWySjOsjC4zPR3 PqMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=4h4BOpNO69qie3dKHcyH8X9n17Gio/VLE5jMdPnPUrs=; b=hW5ivZ/vAqkuuOw/UUpZARAFHF0U8CvJ75kIh3pXZi+4+RevfVlMu7R3kmf/CfPsPY FbrutrXSPNqIYrKyPLWJZcTavxYkAhRAIzovAWe5Xir3gK9C9zYDNxu90Yk323XrIA1A UGV3Q/YdXD4zymElm5tydQx6JQO9WIgsMXU5gHJP+LWSMrA/gRoQf6kmx2WC0e3jjecM zPalV8uEIX+Usu9bPEcmPPNomSdir1hmk7Qo748uQPl9HHd2q1Nf/tjSsSbSwgl+JxNs cEKaDUInnETsGcUrgivSjpRU8pbHgiak+1K6yRnxWUf1s8Ru5izdXMlzq00yaNdRHjcg Q+hw== X-Gm-Message-State: AD7BkJLJbQ4eigHQHEZKRYQnS1yF3VnDcLCVIWaAdXZRdS6sZsLKX42WdgLSobvaQpPOnw70 X-Received: by 10.28.111.217 with SMTP id c86mr9583327wmi.81.1459950615352; Wed, 06 Apr 2016 06:50:15 -0700 (PDT) Received: from xps13.localnet (91.111.75.86.rev.sfr.net. [86.75.111.91]) by smtp.gmail.com with ESMTPSA id r8sm3386908wjz.34.2016.04.06.06.50.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Apr 2016 06:50:14 -0700 (PDT) From: Thomas Monjalon To: Ferruh Yigit Cc: dev@dpdk.org, Jan Medala , Jakub Palider , Netanel Belgazal , Evgeny Schemeilin Date: Wed, 06 Apr 2016 15:48:36 +0200 Message-ID: <2531178.1K5dVvhytR@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1459945046-7595-1-git-send-email-ferruh.yigit@intel.com> References: <1459945046-7595-1-git-send-email-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] ena: icc fix compilation warning #3656 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, 06 Apr 2016 13:50:15 -0000 2016-04-06 13:17, Ferruh Yigit: > With (ICC) 16.0.2 20160204, getting following warnings: > > .../drivers/net/ena/base/ena_com.c(492): error #3656: variable > "flags" may be used before its value is set > ENA_SPINLOCK_LOCK(admin_queue->q_lock, flags); > > .../drivers/net/ena/base/ena_com.c(1971): error #3656: variable > "mem_handle" may be used before its value is set > ENA_MEM_ALLOC_COHERENT(ena_dev->dmadev, len, > > For both warnings the variable value is ignored, so there is no defect. > To comfort compiler warning, a initial value provided to variables. > > Signed-off-by: Ferruh Yigit Applied, thanks