]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: Add explicit alignments in vfio_iommu_spapr_tce_create
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 18 Dec 2015 01:35:47 +0000 (12:35 +1100)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 21 Dec 2015 22:28:11 +0000 (15:28 -0700)
commit57530fdeb95d2f0c0c800c4fab3d3dba4777673b
treeca38a26879aa8b2e34844d5f5f58735b1f8d9b1c
parentc0e20dee630ddce0450021bc4831be5b63be34dd
vfio: Add explicit alignments in vfio_iommu_spapr_tce_create

The vfio_iommu_spapr_tce_create struct has 4x32bit and 2x64bit fields
which should have resulted in sizeof(fio_iommu_spapr_tce_create) equal
to 32 bytes. However due to the gcc's default alignment, the actual
size of this struct is 40 bytes.

This fills gaps with __resv1/2 fields.

This should not cause any change in behavior.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
include/uapi/linux/vfio.h