From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id F0A411E20 for ; Wed, 5 Apr 2017 17:32:14 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP; 05 Apr 2017 08:32:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,279,1486454400"; d="scan'208";a="1131399966" Received: from sivswdev02.ir.intel.com ([10.237.217.46]) by fmsmga001.fm.intel.com with ESMTP; 05 Apr 2017 08:32:12 -0700 From: Ferruh Yigit To: Bruce Richardson , Jerin Jacob Cc: Thomas Monjalon , dev@dpdk.org, Ferruh Yigit Date: Wed, 5 Apr 2017 16:32:09 +0100 Message-Id: <20170405153210.26513-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.8.4 Subject: [dpdk-dev] [PATCH 1/2] event/octeontx: fix build with icc 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: Wed, 05 Apr 2017 15:32:15 -0000 build error: .../drivers/event/octeontx/ssovf_worker.c(212): error #592: variable "get_work0" is used before its value is set RTE_SET_USED(get_work0); ^ .../drivers/event/octeontx/ssovf_worker.c(213): error #592: variable "get_work1" is used before its value is set RTE_SET_USED(get_work1); ^ For x86 these variables set but not used, move macros below where values assigned. Fixes: f61808eaa9ad ("event/octeontx: add start function") Signed-off-by: Ferruh Yigit --- drivers/event/octeontx/ssovf_worker.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/event/octeontx/ssovf_worker.c b/drivers/event/octeontx/ssovf_worker.c index 6a99df0..ad3fe68 100644 --- a/drivers/event/octeontx/ssovf_worker.c +++ b/drivers/event/octeontx/ssovf_worker.c @@ -209,9 +209,6 @@ ssows_flush_events(struct ssows *ws, uint8_t queue_id) uint64_t enable, get_work0, get_work1; uint8_t *base = octeontx_ssovf_bar(OCTEONTX_SSO_GROUP, queue_id, 0); - RTE_SET_USED(get_work0); - RTE_SET_USED(get_work1); - enable = ssovf_read64(base + SSO_VHGRP_QCTL); if (!enable) return; @@ -227,6 +224,9 @@ ssows_flush_events(struct ssows *ws, uint8_t queue_id) cq_ds_cnt &= 0x1FFF1FFF0000; ssovf_load_pair(get_work0, get_work1, ws->base + reg_off); } + + RTE_SET_USED(get_work0); + RTE_SET_USED(get_work1); } void -- 2.9.3