Use QEMU_PACKED to eliminate the effects of compiler option -mms-bitfields.
Cc: Anthony Liguori <[email protected]> Signed-off-by: Stefan Weil <[email protected]> --- 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
