]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
vfio: selftests: Rename vfio_util.h to libvfio.h
authorDavid Matlack <dmatlack@google.com>
Wed, 26 Nov 2025 23:17:29 +0000 (23:17 +0000)
committerAlex Williamson <alex@shazbot.org>
Fri, 28 Nov 2025 17:58:07 +0000 (10:58 -0700)
Rename vfio_util.h to libvfio.h to match the name of libvfio.mk.

No functional change intended.

Reviewed-by: Alex Mastro <amastro@fb.com>
Tested-by: Alex Mastro <amastro@fb.com>
Reviewed-by: Raghavendra Rao Ananta <rananta@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20251126231733.3302983-15-dmatlack@google.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
tools/testing/selftests/vfio/lib/drivers/dsa/dsa.c
tools/testing/selftests/vfio/lib/drivers/ioat/ioat.c
tools/testing/selftests/vfio/lib/include/libvfio.h [moved from tools/testing/selftests/vfio/lib/include/vfio_util.h with 98% similarity]
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/lib/vfio_pci_driver.c
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
tools/testing/selftests/vfio/vfio_pci_device_test.c
tools/testing/selftests/vfio/vfio_pci_driver_test.c

index 0afbab0d82de708d73a064d9d158853efb6c7f1c..c75045bcab791153e7f21cb39dece0a28f140312 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/pci_ids.h>
 #include <linux/sizes.h>
 
-#include <vfio_util.h>
+#include <libvfio.h>
 
 #include "registers.h"
 
index c6db311ce64d7fe4f769b659dd1643bc596b9224..a871b935542bad1e67024a7c0901f12d849b9d34 100644 (file)
@@ -7,7 +7,7 @@
 #include <linux/pci_ids.h>
 #include <linux/sizes.h>
 
-#include <vfio_util.h>
+#include <libvfio.h>
 
 #include "hw.h"
 #include "registers.h"
similarity index 98%
rename from tools/testing/selftests/vfio/lib/include/vfio_util.h
rename to tools/testing/selftests/vfio/lib/include/libvfio.h
index 5224808201fe6dbe2f8dcd5ee87ee1264d14b1e4..3027af15e316123ceac955c471bb48173b4eb9b1 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef SELFTESTS_VFIO_LIB_INCLUDE_VFIO_UTIL_H
-#define SELFTESTS_VFIO_LIB_INCLUDE_VFIO_UTIL_H
+#ifndef SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H
+#define SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H
 
 #include <fcntl.h>
 #include <string.h>
@@ -352,4 +352,4 @@ void vfio_pci_driver_memcpy_start(struct vfio_pci_device *device,
 int vfio_pci_driver_memcpy_wait(struct vfio_pci_device *device);
 void vfio_pci_driver_send_msi(struct vfio_pci_device *device);
 
-#endif /* SELFTESTS_VFIO_LIB_INCLUDE_VFIO_UTIL_H */
+#endif /* SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H */
index 3933079fc419dfa26c0b768332d7c8afa6f34503..52f9cdf5f1711eb2d02ed6d1a275ed45126ef3bc 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/iommufd.h>
 
 #include "../../../kselftest.h"
-#include <vfio_util.h>
+#include <libvfio.h>
 
 const char *default_iommu_mode = "iommufd";
 
index b3b6b27f5d1e82ff2b89c69cba238575109c9ba4..a12b0a51e9e6fc1fc6b57d6872a962edb6592e34 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/types.h>
 #include <linux/vfio.h>
 
-#include <vfio_util.h>
+#include <libvfio.h>
 
 struct iova_allocator *iova_allocator_init(struct iommu *iommu)
 {
index aa5b45052c77cdc80364ef2e71b6bde2d977b746..847e27e1166c024c3966374c14d5b31998b3285d 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/vfio.h>
 
 #include "../../../kselftest.h"
-#include <vfio_util.h>
+#include <libvfio.h>
 
 #define PCI_SYSFS_PATH "/sys/bus/pci/devices"
 
index abb7a62a03eaa6412c608ca34ce88691fa46623e..ca0e25efbfa116ffafe484539cedf506ad22d343 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include "../../../kselftest.h"
-#include <vfio_util.h>
+#include <libvfio.h>
 
 #ifdef __x86_64__
 extern struct vfio_pci_driver_ops dsa_ops;
index c4c2fc36c7b3cd034f652a4cddaab434ec7115a0..213fcd8dcc79b8f5ec23db3446e2a87bf9a5e873 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/sizes.h>
 #include <linux/vfio.h>
 
-#include <vfio_util.h>
+#include <libvfio.h>
 
 #include "../kselftest_harness.h"
 
index 3655106b912d1012fad6be9d6ab384beed26cb86..caf1c6291f3d51d6fea5ab483cf758b7745d479a 100644 (file)
@@ -10,7 +10,7 @@
 #include <sys/ioctl.h>
 #include <unistd.h>
 
-#include <vfio_util.h>
+#include <libvfio.h>
 #include "../kselftest_harness.h"
 
 static const char iommu_dev_path[] = "/dev/iommu";
index e95217933c6b723afefa48bc5d167f58736ea17a..ecbb669b37651018b8d917faedf6d60c9ad6f97e 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/sizes.h>
 #include <linux/vfio.h>
 
-#include <vfio_util.h>
+#include <libvfio.h>
 
 #include "../kselftest_harness.h"
 
index 229e932a06f8a59a8240a569364adff63ad6298f..f0ca8310d6a8ea8ae2c0947d444481fe2ac97f18 100644 (file)
@@ -5,7 +5,7 @@
 #include <linux/sizes.h>
 #include <linux/vfio.h>
 
-#include <vfio_util.h>
+#include <libvfio.h>
 
 #include "../kselftest_harness.h"