mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 23:46:14 +01:00
The vduse_iova_range_v2 and vduse_iotlb_entry_v2 structures are both
defined in a way that adds implicit padding and is incompatible between
i386 and x86_64 userspace because of the different structure alignment
requirements. Building the header with -Wpadded shows these new warnings:
vduse.h:305:1: error: padding struct size to alignment boundary with 4 bytes [-Werror=padded]
vduse.h:374:1: error: padding struct size to alignment boundary with 4 bytes [-Werror=padded]
Change the amount of padding in these two structures to align them to
64 bit words and avoid those problems. Since the v1 vduse_iotlb_entry
already has an inconsistent size, do not attempt to reuse the structure
but rather list the members indiviudally, with a fixed amount of
padding.
Fixes:
|
||
|---|---|---|
| .. | ||
| alibaba | ||
| ifcvf | ||
| mlx5 | ||
| octeon_ep | ||
| pds | ||
| solidrun | ||
| vdpa_sim | ||
| vdpa_user | ||
| virtio_pci | ||
| Kconfig | ||
| Makefile | ||
| vdpa.c | ||