[CRIU] [PATCH 9/8] compel/x86: Align xsave_struct_ia32 by 16
Dmitry Safonov
dima at arista.com
Wed Jan 31 20:55:27 MSK 2018
As ::i387 should be aligned by 16 (as per struct definition):
In file included from compel/include/uapi/compel/asm/sigframe.h:7,
from compel/plugins/std/infect.c:13:
compel/include/uapi/compel/asm/fpu.h:89:1: error: alignment 1 of 'struct xsave_struct_ia32' is less than 16 [-Werror=packed-not-aligned]
} __packed;
^
Signed-off-by: Dmitry Safonov <dima at arista.com>
---
compel/arch/x86/src/lib/include/uapi/asm/fpu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compel/arch/x86/src/lib/include/uapi/asm/fpu.h b/compel/arch/x86/src/lib/include/uapi/asm/fpu.h
index f60112b9ba50..6aa757c10f0d 100644
--- a/compel/arch/x86/src/lib/include/uapi/asm/fpu.h
+++ b/compel/arch/x86/src/lib/include/uapi/asm/fpu.h
@@ -86,7 +86,7 @@ struct xsave_struct_ia32 {
struct i387_fxsave_struct i387;
struct xsave_hdr_struct xsave_hdr;
struct ymmh_struct ymmh;
-} __packed;
+} __aligned(16) __packed;
typedef struct {
/*
--
2.13.6
More information about the CRIU
mailing list