qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 6/7] virtio: Fix packing for w32


From: Stefan Weil
Subject: [Qemu-devel] [PATCH 6/7] virtio: Fix packing for w32
Date: Sun, 28 Aug 2011 22:43:19 +0200

Use QEMU_PACKED to eliminate the effects of compiler option
-mms-bitfields.

Cc: Anthony Liguori <address@hidden>
Signed-off-by: Stefan Weil <address@hidden>
---
 hw/virtio-balloon.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/virtio-balloon.h b/hw/virtio-balloon.h
index e20cf6b..73300dd 100644
--- a/hw/virtio-balloon.h
+++ b/hw/virtio-balloon.h
@@ -50,6 +50,6 @@ struct virtio_balloon_config
 typedef struct VirtIOBalloonStat {
     uint16_t tag;
     uint64_t val;
-} __attribute__((packed)) VirtIOBalloonStat;
+} QEMU_PACKED VirtIOBalloonStat;
 
 #endif
-- 
1.7.0.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]