[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] functional cleanup for __attribute__((packed)) changes
commit f8be76e2fe2f7c014011b3b137b6692566a7d6a2 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Fri Mar 14 09:42:28 2014 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Fri Mar 14 09:42:28 2014 +0100 functional cleanup for __attribute__((packed)) changes 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@xxxxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> Also drop now pointless (and always having been bogus) pack pragmas. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/cpu/mcheck/mce-apei.c | 5 +---- xen/arch/x86/hvm/vmx/vmcs.c | 5 ----- xen/common/trace.c | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/xen/arch/x86/cpu/mcheck/mce-apei.c b/xen/arch/x86/cpu/mcheck/mce-apei.c index 3370341..9488dbd 100644 --- a/xen/arch/x86/cpu/mcheck/mce-apei.c +++ b/xen/arch/x86/cpu/mcheck/mce-apei.c @@ -44,7 +44,6 @@ 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. @@ -53,9 +52,7 @@ struct cper_mce_record { 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) { diff --git a/xen/arch/x86/hvm/vmx/vmcs.c b/xen/arch/x86/hvm/vmx/vmcs.c index 9ffb4af..4b886e5 100644 --- a/xen/arch/x86/hvm/vmx/vmcs.c +++ b/xen/arch/x86/hvm/vmx/vmcs.c @@ -670,11 +670,6 @@ void vmx_vmcs_exit(struct vcpu *v) } } -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(); diff --git a/xen/common/trace.c b/xen/common/trace.c index 41ddc33..73ba57c 100644 --- a/xen/common/trace.c +++ b/xen/common/trace.c @@ -643,7 +643,7 @@ static inline void insert_lost_records(struct t_buf *buf) { struct { u32 lost_records; - u32 did:16, vid:16; + u16 did, vid; u64 first_tsc; } __attribute__((packed)) ed; -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |