aboutsummaryrefslogtreecommitdiff
path: root/hw/s390x/virtio-ccw.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-05-08 12:17:52 +0200
committerCornelia Huck <cohuck@redhat.com>2018-05-14 17:10:02 +0200
commita6e4385dea94850d7b06b0542e7960c1063fdabd (patch)
treef27685bc0296a1a91efb5c993d1bc847fde51a42 /hw/s390x/virtio-ccw.c
parent6e9c893ecd00afd5344c35d0d0ded50eaa0938f6 (diff)
pc-bios/s390-ccw: struct tpi_info must be declared as aligned(4)
I've run into a compilation error today with the current version of GCC 8: In file included from s390-ccw.h:49, from main.c:12: cio.h:128:1: error: alignment 1 of 'struct tpi_info' is less than 4 [-Werror=packed-not-aligned] } __attribute__ ((packed)); ^ cc1: all warnings being treated as errors Since the struct tpi_info contains an element ("struct subchannel_id schid") which is marked as aligned(4), we've got to mark the struct tpi_info as aligned(4), too. CC: qemu-stable@nongnu.org Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <1525774672-11913-1-git-send-email-thuth@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'hw/s390x/virtio-ccw.c')
0 files changed, 0 insertions, 0 deletions