]> Git Repo - linux.git/commitdiff
ARC: [plat-eznps] Fix build error
authorNoam Camus <[email protected]>
Tue, 4 Apr 2017 08:00:41 +0000 (11:00 +0300)
committerVineet Gupta <[email protected]>
Fri, 14 Apr 2017 16:56:06 +0000 (09:56 -0700)
Make ATOMIC_INIT available for all ARC platforms (including plat-eznps)

Cc: <[email protected]> # 4.9+
Signed-off-by: Noam Camus <[email protected]>
Signed-off-by: Vineet Gupta <[email protected]>
arch/arc/include/asm/atomic.h

index b65930a4958959fb65891ac375a7637a0e5cb146..54b54da6384c197a93848e05ef292c224f5c0f91 100644 (file)
 #include <asm/barrier.h>
 #include <asm/smp.h>
 
+#define ATOMIC_INIT(i) { (i) }
+
 #ifndef CONFIG_ARC_PLAT_EZNPS
 
 #define atomic_read(v)  READ_ONCE((v)->counter)
-#define ATOMIC_INIT(i) { (i) }
 
 #ifdef CONFIG_ARC_HAS_LLSC
 
This page took 0.059022 seconds and 4 git commands to generate.