From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 9AFF72B9B for ; Thu, 6 Apr 2017 19:05:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491498340; x=1523034340; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VheSZTGcnA4DB9yTNk0u/r7rXWTix6AybymnbZDray0=; b=hSNwrWTBqtHGtSRw0GUY5DYQ15tuuKOZ6/8SdKwNQ5rGxABW4+lESqAx EGN8B5n+2Lok6m4f4HfAPW6zzZb0OA==; Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Apr 2017 10:05:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,160,1488873600"; d="scan'208";a="84194195" Received: from sivswdev02.ir.intel.com ([10.237.217.46]) by orsmga005.jf.intel.com with ESMTP; 06 Apr 2017 10:05:16 -0700 From: Ferruh Yigit To: Jerin Jacob , Bruce Richardson , Harry van Haaren , Thomas Monjalon Cc: dev@dpdk.org, Ferruh Yigit Date: Thu, 6 Apr 2017 18:05:11 +0100 Message-Id: <20170406170511.22289-3-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20170406170511.22289-1-ferruh.yigit@intel.com> References: <20170406134637.4484-1-ferruh.yigit@intel.com> <20170406170511.22289-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 3/3] event/sw: fix build error for gcc 4.5.1 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: Thu, 06 Apr 2017 17:05:41 -0000 build error: .../event/sw/sw_evdev_worker.c: In function ‘sw_event_release’: .../event/sw/sw_evdev_worker.c:52:3: error: unknown field ‘op’ specified in initializer Fixed by updating struct initialization. Fixes: 656af9180014 ("event/sw: add worker core functions") Signed-off-by: Ferruh Yigit Acked-by: Harry van Haaren --- drivers/event/sw/sw_evdev_worker.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/event/sw/sw_evdev_worker.c b/drivers/event/sw/sw_evdev_worker.c index ed08778..b9b6f8d 100644 --- a/drivers/event/sw/sw_evdev_worker.c +++ b/drivers/event/sw/sw_evdev_worker.c @@ -48,9 +48,8 @@ sw_event_release(struct sw_port *p, uint8_t index) RTE_SET_USED(index); /* create drop message */ - struct rte_event ev = { - .op = sw_qe_flag_map[RTE_EVENT_OP_RELEASE], - }; + struct rte_event ev; + ev.op = sw_qe_flag_map[RTE_EVENT_OP_RELEASE]; uint16_t free_count; qe_ring_enqueue_burst(p->rx_worker_ring, &ev, 1, &free_count); -- 2.9.3