[CRIU] [PATCH] compel: wrap rt_sigframe with parentheses
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Fri Mar 17 04:15:48 PDT 2017
It can be passed as link to real object.
Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
.../arch/x86/src/lib/include/uapi/asm/sigframe.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h b/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
index 21cd341..2b51c36 100644
--- a/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
+++ b/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
@@ -150,7 +150,7 @@ struct rt_sigframe {
* - compatible is in sys32_rt_sigreturn at arch/x86/ia32/ia32_signal.c
* - native is in sys_rt_sigreturn at arch/x86/kernel/signal.c
*/
-#define RT_SIGFRAME_OFFSET(rt_sigframe) ((rt_sigframe->is_native) ? 8 : 4 )
+#define RT_SIGFRAME_OFFSET(rt_sigframe) (((rt_sigframe)->is_native) ? 8 : 4 )
#define USER32_CS 0x23
More information about the CRIU
mailing list