diff mbox

[PATCHv2,3/4] include/*: asm compatible with -std=c99

Message ID 1399060067-22104-4-git-send-email-anders.roxell@linaro.org
State Accepted
Headers show

Commit Message

Anders Roxell May 2, 2014, 7:47 p.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 include/odp_atomic.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/include/odp_atomic.h b/include/odp_atomic.h
index 763436a..630b8bc 100644
--- a/include/odp_atomic.h
+++ b/include/odp_atomic.h
@@ -230,8 +230,9 @@  static inline uint32_t odp_atomic_fetch_inc_u32(odp_atomic_u32_t *ptr)
 {
 	uint32_t ret;
 
-	asm __volatile__ ("syncws");
-	asm __volatile__ ("lai %0,(%2)" : "=r" (ret), "+m" (ptr) : "r" (ptr));
+	__asm__ __volatile__ ("syncws");
+	__asm__ __volatile__ ("lai %0,(%2)" : "=r" (ret), "+m" (ptr) :
+			      "r" (ptr));
 
 	return ret;
 }