Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio_iommu: correct tags for config space fields

Since this is a modern-only device,
tag config space fields as having little endian-ness.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>

+6 -6
+6 -6
include/uapi/linux/virtio_iommu.h
··· 18 18 #define VIRTIO_IOMMU_F_MMIO 5 19 19 20 20 struct virtio_iommu_range_64 { 21 - __u64 start; 22 - __u64 end; 21 + __le64 start; 22 + __le64 end; 23 23 }; 24 24 25 25 struct virtio_iommu_range_32 { 26 - __u32 start; 27 - __u32 end; 26 + __le32 start; 27 + __le32 end; 28 28 }; 29 29 30 30 struct virtio_iommu_config { 31 31 /* Supported page sizes */ 32 - __u64 page_size_mask; 32 + __le64 page_size_mask; 33 33 /* Supported IOVA range */ 34 34 struct virtio_iommu_range_64 input_range; 35 35 /* Max domain ID size */ 36 36 struct virtio_iommu_range_32 domain_range; 37 37 /* Probe buffer size */ 38 - __u32 probe_size; 38 + __le32 probe_size; 39 39 }; 40 40 41 41 /* Request types */