[CRIU] [PATCH 2/3] atomic: convert atomic_t counter to u32

Dmitry Safonov dsafonov at virtuozzo.com
Tue Aug 16 12:11:25 PDT 2016


As futex API requires it to be u32 and as it's in parasite_args now,
let's make it fix-sized.

Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 criu/arch/x86/include/asm/atomic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/arch/x86/include/asm/atomic.h b/criu/arch/x86/include/asm/atomic.h
index d447b65cb4c6..0b39ad3b692e 100644
--- a/criu/arch/x86/include/asm/atomic.h
+++ b/criu/arch/x86/include/asm/atomic.h
@@ -6,7 +6,7 @@
 #define LOCK_PREFIX "\n\tlock; "
 
 typedef struct {
-	int counter;
+	u32 counter;
 } atomic_t;
 
 #define ATOMIC_INIT(i)	{ (i) }
-- 
2.9.0



More information about the CRIU mailing list