From: Ferruh Yigit Date: Thu, 6 Apr 2017 17:05:11 +0000 (+0100) Subject: event/sw: fix build for gcc 4.5.1 X-Git-Tag: spdx-start~3702 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1e846151cf3ccaaa73160759aa4d5ed0c260481f;p=dpdk.git event/sw: fix build for gcc 4.5.1 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 --- diff --git a/drivers/event/sw/sw_evdev_worker.c b/drivers/event/sw/sw_evdev_worker.c index ed08778387..b9b6f8d25d 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);