• Dmitry Safonov's avatar
    compel: Explicitely align all containers of i387_fxsave_struct · 7ca30056
    Dmitry Safonov authored
    As it's aligned to 16, all structures that contain it should be
    also aligned to 16. In the kernel there is no such align as
    there two separate definitions of i387_fxsave_struct:
    one for ia32 and another for x86_64.
    Fixes newly introduced align warning in gcc-8.1:
    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;
     ^
    
    It doesn't change the current align of the struct, as containing
    structures are __packed and it aligned already *by fact*.
    It only affects the function users of the struct's local variables:
    now they lay aligned on a stack.
    Signed-off-by: 's avatarDmitry Safonov <dima@arista.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    7ca30056
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...