]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vfio: selftests: Drop <uapi/linux/types.h> includes
authorDavid Matlack <dmatlack@google.com>
Fri, 19 Dec 2025 23:38:18 +0000 (23:38 +0000)
committerAlex Williamson <alex@shazbot.org>
Tue, 23 Dec 2025 21:17:13 +0000 (14:17 -0700)
commit193120dddd1a1f3dcae164289498588fa0544d78
tree280186ca7e21ececdac4220ed30832eb7a96748d
parent30fb98ec34d3c14cb748714ea3179b597604a1d4
vfio: selftests: Drop <uapi/linux/types.h> includes

Drop the <uapi/linux/types.h> includes now that <linux/types.h>
(tools/include/linux/types.h) has a definition for __aligned_le64, which
is needed by <linux/iommufd.h>.

Including <uapi/linux/types.h> is harmless but causes benign typedef
redefinitions. This is not a problem for VFIO selftests but becomes an
issue when the VFIO selftests library is built into KVM selftests, since
they are built with -std=gnu99 which does not allow typedef redifitions.

No functional change intended.

Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20251219233818.1965306-3-dmatlack@google.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
tools/testing/selftests/vfio/lib/include/libvfio/iova_allocator.h
tools/testing/selftests/vfio/lib/iommu.c
tools/testing/selftests/vfio/lib/iova_allocator.c
tools/testing/selftests/vfio/lib/vfio_pci_device.c
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c