From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 5FF151B2B9 for ; Tue, 10 Oct 2017 14:36:34 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2017 05:36:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,505,1500966000"; d="scan'208";a="1180522625" Received: from silpixa00399464.ir.intel.com (HELO silpixa00399464.ger.corp.intel.com) ([10.237.222.157]) by orsmga001.jf.intel.com with ESMTP; 10 Oct 2017 05:36:31 -0700 From: Pablo de Lara To: santosh.shukla@caviumnetworks.com, jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org, Pablo de Lara Date: Tue, 10 Oct 2017 05:37:02 +0100 Message-Id: <20171010043702.36498-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.9.4 Subject: [dpdk-dev] [PATCH] net/octeontx/base: fix icc build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2017 12:36:34 -0000 drivers/net/octeontx/base/octeontx_pkovf.c(527): error #592: variable "i" is used before its value is set RTE_SET_USED(i); Fixes: ab4f789560c4 ("net/octeontx/base: probe PKI and PKO PCIe VF devices") Signed-off-by: Pablo de Lara --- drivers/net/octeontx/base/octeontx_pkovf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/octeontx/base/octeontx_pkovf.c b/drivers/net/octeontx/base/octeontx_pkovf.c index cbcc006..f0fb930 100644 --- a/drivers/net/octeontx/base/octeontx_pkovf.c +++ b/drivers/net/octeontx/base/octeontx_pkovf.c @@ -522,10 +522,10 @@ static void octeontx_pkovf_setup(void) { static bool init_once; - int i; - RTE_SET_USED(i); if (!init_once) { + unsigned int i; + rte_spinlock_init(&pko_vf_ctl.lock); pko_vf_ctl.fc_iomem = PKO_IOMEM_NULL; -- 2.9.4