Message ID | 1395934335-19518-1-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | Accepted |
Headers | show |
diff --git a/include/odp_sync.h b/include/odp_sync.h index e5bd0fb..cf56faa 100644 --- a/include/odp_sync.h +++ b/include/odp_sync.h @@ -29,15 +29,15 @@ static inline void odp_sync_stores(void) { #if defined __x86_64__ || defined __i386__ - asm __volatile__ ("sfence\n" : : : "memory"); + __asm__ __volatile__ ("sfence\n" : : : "memory"); #elif defined __arm__ - asm __volatile__ ("dmb st" : : : "memory"); + __asm__ __volatile__ ("dmb st" : : : "memory"); #elif defined __OCTEON__ - asm __volatile__ ("syncws\n" : : : "memory"); + __asm__ __volatile__ ("syncws\n" : : : "memory"); #else __sync_synchronize();
asm is not defined with -std=c99 use __asm__ instead. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- include/odp_sync.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)