diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2015-12-17 20:35:47 -0500 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2015-12-21 17:28:11 -0500 |
commit | 77d6bd47cc2824af016086c2bd4650685b159e22 (patch) | |
tree | ca38a26879aa8b2e34844d5f5f58735b1f8d9b1c /include/uapi | |
parent | 967628827f404b3063016c138ccc7b06c54350f8 (diff) |
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>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/vfio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index 9fd7b5d8df2f..d1172331ca62 100644 --- a/include/uapi/linux/vfio.h +++ b/include/uapi/linux/vfio.h | |||
@@ -568,8 +568,10 @@ struct vfio_iommu_spapr_tce_create { | |||
568 | __u32 flags; | 568 | __u32 flags; |
569 | /* in */ | 569 | /* in */ |
570 | __u32 page_shift; | 570 | __u32 page_shift; |
571 | __u32 __resv1; | ||
571 | __u64 window_size; | 572 | __u64 window_size; |
572 | __u32 levels; | 573 | __u32 levels; |
574 | __u32 __resv2; | ||
573 | /* out */ | 575 | /* out */ |
574 | __u64 start_addr; | 576 | __u64 start_addr; |
575 | }; | 577 | }; |