eal/ppc: remove braces in SMP memory barrier macro
This patch fixes the compilation problem with rte_smp_mb, when there is else clause following it, as in test_barrier.c. Fixes: 05c3fd7110 ("eal/ppc: atomic operations for IBM Power") Cc: stable@dpdk.org Signed-off-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com> Acked-by: Luca Boccassi <bluca@debian.org> Acked-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
This commit is contained in:
parent
befc693a61
commit
da07658d58
@ -55,7 +55,7 @@ extern "C" {
|
||||
* Guarantees that the LOAD and STORE operations generated before the
|
||||
* barrier occur before the LOAD and STORE operations generated after.
|
||||
*/
|
||||
#define rte_mb() {asm volatile("sync" : : : "memory"); }
|
||||
#define rte_mb() asm volatile("sync" : : : "memory")
|
||||
|
||||
/**
|
||||
* Write memory barrier.
|
||||
|
Loading…
x
Reference in New Issue
Block a user