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 99FF31E20 for ; Wed, 5 Apr 2017 17:32:15 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP; 05 Apr 2017 08:32:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,279,1486454400"; d="scan'208";a="1131399974" Received: from sivswdev02.ir.intel.com ([10.237.217.46]) by fmsmga001.fm.intel.com with ESMTP; 05 Apr 2017 08:32:13 -0700 From: Ferruh Yigit To: Bruce Richardson , Jerin Jacob Cc: Thomas Monjalon , dev@dpdk.org, Ferruh Yigit Date: Wed, 5 Apr 2017 16:32:10 +0100 Message-Id: <20170405153210.26513-2-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20170405153210.26513-1-ferruh.yigit@intel.com> References: <20170405153210.26513-1-ferruh.yigit@intel.com> Subject: [dpdk-dev] [PATCH 2/2] event/sw: 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:16 -0000 build error: .../drivers/event/sw/sw_evdev_scheduler.c(379): error #300: const variable "dummy_rob" requires an initializer static const struct reorder_buffer_entry dummy_rob; ^ Variable "dummy_rob" defined as const but already cast to another pointer and its content updated. Remove const qualifier from variable. Fixes: 617995dfc5b2 ("event/sw: add scheduling logic") Signed-off-by: Ferruh Yigit --- drivers/event/sw/sw_evdev_scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/event/sw/sw_evdev_scheduler.c b/drivers/event/sw/sw_evdev_scheduler.c index c0fe6a3..77a16d7 100644 --- a/drivers/event/sw/sw_evdev_scheduler.c +++ b/drivers/event/sw/sw_evdev_scheduler.c @@ -376,7 +376,7 @@ sw_refill_pp_buf(struct sw_evdev *sw, struct sw_port *port) static inline uint32_t __attribute__((always_inline)) __pull_port_lb(struct sw_evdev *sw, uint32_t port_id, int allow_reorder) { - static const struct reorder_buffer_entry dummy_rob; + static struct reorder_buffer_entry dummy_rob; uint32_t pkts_iter = 0; struct sw_port *port = &sw->ports[port_id]; -- 2.9.3