[CRIU] [PATCH 1/3] arch,atomic: Add missing ATOMIC_INIT
Cyrill Gorcunov
gorcunov at gmail.com
Thu May 24 11:54:57 MSK 2018
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
include/common/arch/aarch64/asm/atomic.h | 1 +
include/common/arch/arm/asm/atomic.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/common/arch/aarch64/asm/atomic.h b/include/common/arch/aarch64/asm/atomic.h
index 11785c3aa0aa..4ea0a79f09e8 100644
--- a/include/common/arch/aarch64/asm/atomic.h
+++ b/include/common/arch/aarch64/asm/atomic.h
@@ -5,6 +5,7 @@ typedef struct {
int counter;
} atomic_t;
+#define ATOMIC_INIT(i) { (i) }
/* Copied from the Linux header arch/arm/include/asm/barrier.h */
diff --git a/include/common/arch/arm/asm/atomic.h b/include/common/arch/arm/asm/atomic.h
index 94e65cf3e086..d54ab714ccee 100644
--- a/include/common/arch/arm/asm/atomic.h
+++ b/include/common/arch/arm/asm/atomic.h
@@ -7,6 +7,7 @@ typedef struct {
int counter;
} atomic_t;
+#define ATOMIC_INIT(i) { (i) }
/* Copied from the Linux kernel header arch/arm/include/asm/atomic.h */
--
2.14.3
More information about the CRIU
mailing list