diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-07-18 18:12:37 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-07-21 10:54:40 +0100 |
commit | 7c7bb0223e667c656950427cd17bf95d92993f76 (patch) | |
tree | 1af85d410397f6d82e6f38c426279c6f334c8ac0 /hw/ppce500_spin.c | |
parent | 434acb817b8ae747f31e91ec152f9f47ac514433 (diff) | |
download | qemu-7c7bb0223e667c656950427cd17bf95d92993f76.zip qemu-7c7bb0223e667c656950427cd17bf95d92993f76.tar.gz qemu-7c7bb0223e667c656950427cd17bf95d92993f76.tar.bz2 |
Use macro QEMU_PACKED for new packed structures
Since commit 541dc0d47f10973c241e9955afc2aefc96adec51,
some new packed structures were added without using QEMU_PACKED.
QEMU_PACKED is needed for compilations with MinGW.
For other platforms nothing changes.
The code was fixed using this command:
git grep -la '__attribute__ ((packed))'|xargs perl -pi -e 's/__attribute__ \(\(packed\)\)/QEMU_PACKED/'
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw/ppce500_spin.c')
-rw-r--r-- | hw/ppce500_spin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppce500_spin.c b/hw/ppce500_spin.c index fddf219..c5b8e05 100644 --- a/hw/ppce500_spin.c +++ b/hw/ppce500_spin.c @@ -40,7 +40,7 @@ typedef struct spin_info { uint32_t resv; uint32_t pir; uint64_t reserved; -} __attribute__ ((packed)) SpinInfo; +} QEMU_PACKED SpinInfo; typedef struct spin_state { SysBusDevice busdev; |