Skip to content

Commit 6492f09

Browse files
Noam Camusvineetgarc
authored andcommitted
ARC: [plat-eznps] Fix build error
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]>
1 parent 39da7c5 commit 6492f09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arc/include/asm/atomic.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
#include <asm/barrier.h>
1818
#include <asm/smp.h>
1919

20+
#define ATOMIC_INIT(i) { (i) }
21+
2022
#ifndef CONFIG_ARC_PLAT_EZNPS
2123

2224
#define atomic_read(v) READ_ONCE((v)->counter)
23-
#define ATOMIC_INIT(i) { (i) }
2425

2526
#ifdef CONFIG_ARC_HAS_LLSC
2627

0 commit comments

Comments
 (0)