]> git.proxmox.com Git - mirror_qemu.git/commit
pc-bios/s390-ccw: struct tpi_info must be declared as aligned(4)
authorThomas Huth <thuth@redhat.com>
Tue, 8 May 2018 10:17:52 +0000 (12:17 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:45:04 +0000 (20:45 -0500)
commitce4e7b03a79eb56228e97a6858d85ac5006947f3
tree32e1d2f8e4928c5337ffc145a30d4d251084f773
parent435a31ff9a3e3e881e4e07e3eae6c758bee0054b
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>
(cherry picked from commit a6e4385dea94850d7b06b0542e7960c1063fdabd)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
pc-bios/s390-ccw/cio.h