diff options
author | Noam Camus <noamca@mellanox.com> | 2017-04-04 11:00:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-03 08:36:38 -0700 |
commit | 563300b9ff7f32d02581b366ff63573ad6daf25c (patch) | |
tree | ae38ec98640bb379506d86cbc94b55c2b7481852 /arch/arc | |
parent | 59f83369d44cb5f718a1ed54136237b737eaa18f (diff) | |
download | linux-stable-563300b9ff7f32d02581b366ff63573ad6daf25c.tar.gz linux-stable-563300b9ff7f32d02581b366ff63573ad6daf25c.tar.bz2 linux-stable-563300b9ff7f32d02581b366ff63573ad6daf25c.zip |
ARC: [plat-eznps] Fix build error
commit 6492f09e864417d382e22b922ae30693a7ce2982 upstream.
Make ATOMIC_INIT available for all ARC platforms (including plat-eznps)
Signed-off-by: Noam Camus <noamca@mellanox.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arc')
-rw-r--r-- | arch/arc/include/asm/atomic.h | 3 |
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 |