From 27e9fb84597e216b9ac65a6839dc710dd1ceaeb2 Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Mon, 17 Apr 2017 15:35:59 +0100 Subject: [PATCH] eventdev: fix build for clang 4 build error: .../lib/librte_eventdev/rte_eventdev.c:371:6: error: logical not is only applied to the left hand side of this bitwise operator [-Werror,-Wlogical-not-parentheses] if (!dev_conf->event_dev_cfg & RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT) ^ Added parentheses after the '!' to evaluate the bitwise operator first. Signed-off-by: Ferruh Yigit --- lib/librte_eventdev/rte_eventdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eventdev/rte_eventdev.c b/lib/librte_eventdev/rte_eventdev.c index 8042988909..5875eb037c 100644 --- a/lib/librte_eventdev/rte_eventdev.c +++ b/lib/librte_eventdev/rte_eventdev.c @@ -368,7 +368,7 @@ rte_event_dev_configure(uint8_t dev_id, (*dev->dev_ops->dev_infos_get)(dev, &info); /* Check dequeue_timeout_ns value is in limit */ - if (!dev_conf->event_dev_cfg & RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT) { + if (!(dev_conf->event_dev_cfg & RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT)) { if (dev_conf->dequeue_timeout_ns < info.min_dequeue_timeout_ns || dev_conf->dequeue_timeout_ns > info.max_dequeue_timeout_ns) { -- 2.20.1