This is to separate the functional changes from the noop consistency changes.
* Pack struct cper_mce_record rather than creating a structure named __packed
* Remove unreferenced struct xgt_desc
* Use two u16's rather than two u32 16-bit bitfields
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Also drop now pointless (and always having been bogus) pack pragmas.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
UUID_LE(0xfe08ffbe, 0x95e4, 0x4be7, 0xbc, 0x73, 0x40, 0x96, \
0x04, 0x4a, 0x38, 0xfc)
-#pragma pack(1)
/*
* CPER specification (in UEFI specification 2.3 appendix N) requires
* byte-packed.
struct cper_record_header hdr;
struct cper_section_descriptor sec_hdr;
struct mce mce;
-} __packed;
-/* Reset to default packing */
-#pragma pack()
+} __attribute__((packed));
int apei_write_mce(struct mce *m)
{
}
}
-struct xgt_desc {
- unsigned short size;
- unsigned long address __attribute__((packed));
-};
-
static void vmx_set_host_env(struct vcpu *v)
{
unsigned int cpu = smp_processor_id();
{
struct {
u32 lost_records;
- u32 did:16, vid:16;
+ u16 did, vid;
u64 first_tsc;
} __attribute__((packed)) ed;