Skip to content

Commit 657d241

Browse files
dmatlackawilliam
authored andcommitted
vfio: selftests: Rename vfio_util.h to libvfio.h
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>
1 parent 831c37a commit 657d241

11 files changed

Lines changed: 13 additions & 13 deletions

File tree

tools/testing/selftests/vfio/lib/drivers/dsa/dsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <linux/pci_ids.h>
1010
#include <linux/sizes.h>
1111

12-
#include <vfio_util.h>
12+
#include <libvfio.h>
1313

1414
#include "registers.h"
1515

tools/testing/selftests/vfio/lib/drivers/ioat/ioat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <linux/pci_ids.h>
88
#include <linux/sizes.h>
99

10-
#include <vfio_util.h>
10+
#include <libvfio.h>
1111

1212
#include "hw.h"
1313
#include "registers.h"

tools/testing/selftests/vfio/lib/include/vfio_util.h renamed to tools/testing/selftests/vfio/lib/include/libvfio.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0-only */
2-
#ifndef SELFTESTS_VFIO_LIB_INCLUDE_VFIO_UTIL_H
3-
#define SELFTESTS_VFIO_LIB_INCLUDE_VFIO_UTIL_H
2+
#ifndef SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H
3+
#define SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H
44

55
#include <fcntl.h>
66
#include <string.h>
@@ -352,4 +352,4 @@ void vfio_pci_driver_memcpy_start(struct vfio_pci_device *device,
352352
int vfio_pci_driver_memcpy_wait(struct vfio_pci_device *device);
353353
void vfio_pci_driver_send_msi(struct vfio_pci_device *device);
354354

355-
#endif /* SELFTESTS_VFIO_LIB_INCLUDE_VFIO_UTIL_H */
355+
#endif /* SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H */

tools/testing/selftests/vfio/lib/iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <linux/iommufd.h>
2020

2121
#include "../../../kselftest.h"
22-
#include <vfio_util.h>
22+
#include <libvfio.h>
2323

2424
const char *default_iommu_mode = "iommufd";
2525

tools/testing/selftests/vfio/lib/iova_allocator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <linux/types.h>
2020
#include <linux/vfio.h>
2121

22-
#include <vfio_util.h>
22+
#include <libvfio.h>
2323

2424
struct iova_allocator *iova_allocator_init(struct iommu *iommu)
2525
{

tools/testing/selftests/vfio/lib/vfio_pci_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <linux/vfio.h>
2121

2222
#include "../../../kselftest.h"
23-
#include <vfio_util.h>
23+
#include <libvfio.h>
2424

2525
#define PCI_SYSFS_PATH "/sys/bus/pci/devices"
2626

tools/testing/selftests/vfio/lib/vfio_pci_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
#include "../../../kselftest.h"
3-
#include <vfio_util.h>
3+
#include <libvfio.h>
44

55
#ifdef __x86_64__
66
extern struct vfio_pci_driver_ops dsa_ops;

tools/testing/selftests/vfio/vfio_dma_mapping_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <linux/sizes.h>
1111
#include <linux/vfio.h>
1212

13-
#include <vfio_util.h>
13+
#include <libvfio.h>
1414

1515
#include "../kselftest_harness.h"
1616

tools/testing/selftests/vfio/vfio_iommufd_setup_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <sys/ioctl.h>
1111
#include <unistd.h>
1212

13-
#include <vfio_util.h>
13+
#include <libvfio.h>
1414
#include "../kselftest_harness.h"
1515

1616
static const char iommu_dev_path[] = "/dev/iommu";

tools/testing/selftests/vfio/vfio_pci_device_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <linux/sizes.h>
1111
#include <linux/vfio.h>
1212

13-
#include <vfio_util.h>
13+
#include <libvfio.h>
1414

1515
#include "../kselftest_harness.h"
1616

0 commit comments

Comments
 (0)