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

Submitted by Dmitry Safonov on Aug. 16, 2016, 7:11 p.m.

Details

Message ID 20160816191126.32666-3-dsafonov@virtuozzo.com
State Rejected
Series "parasite with futex fixes"
Delegated to: Andrei Vagin
Headers show

Commit Message

Dmitry Safonov Aug. 16, 2016, 7:11 p.m.
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@virtuozzo.com>
---
 criu/arch/x86/include/asm/atomic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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) }

Comments

Dmitry Safonov Aug. 19, 2016, 9:32 a.m.
On 08/16/2016 10:11 PM, Dmitry Safonov wrote:
> 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@virtuozzo.com>

Pavel, please, don't apply the second 2/3 patch.
Will test it for some more, thanks.