summaryrefslogtreecommitdiffstats
path: root/arch/arc
diff options
context:
space:
mode:
authorNoam Camus <noamca@mellanox.com>2017-04-04 11:00:41 +0300
committerVineet Gupta <vgupta@synopsys.com>2017-04-14 09:56:06 -0700
commit6492f09e864417d382e22b922ae30693a7ce2982 (patch)
tree85390b7605e3cb134f506d79346c84a88e7c334d /arch/arc
parent39da7c509acff13fc8cb12ec1bb20337c988ed36 (diff)
downloadlinux-6492f09e864417d382e22b922ae30693a7ce2982.tar.gz
linux-6492f09e864417d382e22b922ae30693a7ce2982.tar.bz2
linux-6492f09e864417d382e22b922ae30693a7ce2982.zip
ARC: [plat-eznps] Fix build error
Make ATOMIC_INIT available for all ARC platforms (including plat-eznps) Cc: <stable@vger.kernel.org> # 4.9+ Signed-off-by: Noam Camus <noamca@mellanox.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/include/asm/atomic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arc/include/asm/atomic.h b/arch/arc/include/asm/atomic.h
index b65930a49589..54b54da6384c 100644
--- a/arch/arc/include/asm/atomic.h
+++ b/arch/arc/include/asm/atomic.h
@@ -17,10 +17,11 @@
#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