From fa865c012b4bd67e0d26902f5255a10a13b89919 Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Wed, 5 Apr 2017 16:32:10 +0100 Subject: [PATCH] event/sw: fix build with icc 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 c0fe6a3e57..77a16d745d 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.20.1