x86/emul: Use explicit __attribute__((__packed__)) rather than __packed
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Oct 2016 17:46:39 +0000 (18:46 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 26 Oct 2016 13:03:52 +0000 (14:03 +0100)
commit22bc820abb5200729dc387e6a0653c31daecfef3
treecaab20f6f3568933f431e73826b141a08e9cb19a
parent1b843b2097e89d0fae18123cde88da9d167d9a0c
x86/emul: Use explicit __attribute__((__packed__)) rather than __packed

x86_emulate.h is included by the userspace test harness.  Avoid using
constructs which don't come from standard header files.

Reposition the test harnesses inclusion of x86_emulate.h to avoid relying on
any definitions intended for use by x86_emulate.c alone.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/tests/x86_emulator/test_x86_emulator.c
tools/tests/x86_emulator/x86_emulate.c
xen/arch/x86/x86_emulate/x86_emulate.h