Re: [dpdk-dev] [PATCH] eal/arm64: fix memory barrier macros

2018-01-15 Thread Thomas Monjalon
16/01/2018 00:59, Thomas Monjalon: > The macros dsb and dmb are defined as an instruction block with braces. > As a consequence, when it is used in if/else without brace: > if (cond) > rte_mb(); > else > statement; > the added semicolon is parsed outside of i

[dpdk-dev] [PATCH] eal/arm64: fix memory barrier macros

2018-01-15 Thread Thomas Monjalon
The macros dsb and dmb are defined as an instruction block with braces. As a consequence, when it is used in if/else without brace: if (cond) rte_mb(); else statement; the added semicolon is parsed outside of if/else, so the "else" cannot match the "i