projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39da7c5
)
ARC: [plat-eznps] Fix build error
author
Noam Camus
<noamca@mellanox.com>
Tue, 4 Apr 2017 08:00:41 +0000
(11:00 +0300)
committer
Vineet Gupta
<vgupta@synopsys.com>
Fri, 14 Apr 2017 16:56:06 +0000
(09:56 -0700)
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>
arch/arc/include/asm/atomic.h
patch
|
blob
|
history
diff --git
a/arch/arc/include/asm/atomic.h
b/arch/arc/include/asm/atomic.h
index
b65930a
..
54b54da
100644
(file)
--- 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