From 1698fe6cdcdeaad03aa19a85433d5396ecfc51ef Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Fri, 28 Jul 2017 23:05:54 +0200 Subject: [PATCH] fix build failure for sh4a due to missing colon in asm statement Due to a missing ":" in an asm() statement, the "memory" clobber is considered by gcc as an input operand and not a clobber, which causes a build failure. --- arch/sh/atomic_arch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/atomic_arch.h b/arch/sh/atomic_arch.h index 74444d5d..d48a7651 100644 --- a/arch/sh/atomic_arch.h +++ b/arch/sh/atomic_arch.h @@ -21,7 +21,7 @@ static inline int a_sc(volatile int *p, int v) #define a_barrier a_barrier static inline void a_barrier() { - __asm__ __volatile__ ("synco" : : "memory"); + __asm__ __volatile__ ("synco" ::: "memory"); } #define a_pre_llsc a_barrier -- 2.25.1