From mboxrd@z Thu Jan 1 00:00:00 1970 From: Georgios Katsikas Subject: [PATCH 2/3] app/testpmd: Added new line and parenthesized macros Date: Fri, 12 Jan 2018 22:01:26 +0100 Message-ID: <1515790887-64502-2-git-send-email-george.dit@gmail.com> References: <1515790887-64502-1-git-send-email-george.dit@gmail.com> Cc: dev@dpdk.org, Georgios Katsikas To: olivier.matz@6wind.com Return-path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id BEA82A492 for ; Fri, 12 Jan 2018 22:02:41 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id x4so3988932wmc.0 for ; Fri, 12 Jan 2018 13:02:41 -0800 (PST) In-Reply-To: <1515790887-64502-1-git-send-email-george.dit@gmail.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Georgios Katsikas --- lib/librte_cmdline/cmdline_flow.h | 2 +- lib/librte_ether/rte_flow.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_cmdline/cmdline_flow.h b/lib/librte_cmdline/cmdline_flow.h index 45219d5..7066254 100644 --- a/lib/librte_cmdline/cmdline_flow.h +++ b/lib/librte_cmdline/cmdline_flow.h @@ -1849,4 +1849,4 @@ static const struct token token_list[] = { } #endif -#endif /* _CMDLINE_FLOW_H_ */ \ No newline at end of file +#endif /* _CMDLINE_FLOW_H_ */ diff --git a/lib/librte_ether/rte_flow.h b/lib/librte_ether/rte_flow.h index a63153e..c2184b6 100644 --- a/lib/librte_ether/rte_flow.h +++ b/lib/librte_ether/rte_flow.h @@ -854,7 +854,7 @@ struct rte_flow_item { /** Generate flow_item[] entry. */ #define MK_FLOW_ITEM(t, s) \ - [RTE_FLOW_ITEM_TYPE_ ## t] = { \ + [(RTE_FLOW_ITEM_TYPE_ ## t)] = { \ .name = # t, \ .size = s, \ } @@ -1167,7 +1167,7 @@ struct rte_flow_action { /** Generate flow_action[] entry. */ #define MK_FLOW_ACTION(t, s) \ - [RTE_FLOW_ACTION_TYPE_ ## t] = { \ + [(RTE_FLOW_ACTION_TYPE_ ## t)] = { \ .name = # t, \ .size = s, \ } -- 2.7.4