eal/arm64: remove the braces in memory barrier macros
for the code as follows:
if (condition)
rte_smp_rmb();
else
rte_smp_wmb();
Without this patch, compiler will report this error:
error: 'else' without a previous 'if'
Fixes: 84733fd0d7
("eal/arm64: fix memory barrier definition")
Cc: stable@dpdk.org
Signed-off-by: Jia He <jia.he@hxt-semitech.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
This commit is contained in:
parent
1742c2d9fa
commit
59a3cae530
@ -15,8 +15,8 @@ extern "C" {
|
||||
|
||||
#include "generic/rte_atomic.h"
|
||||
|
||||
#define dsb(opt) { asm volatile("dsb " #opt : : : "memory"); }
|
||||
#define dmb(opt) { asm volatile("dmb " #opt : : : "memory"); }
|
||||
#define dsb(opt) asm volatile("dsb " #opt : : : "memory")
|
||||
#define dmb(opt) asm volatile("dmb " #opt : : : "memory")
|
||||
|
||||
#define rte_mb() dsb(sy)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user