mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Alex Williamson
parent
831c37a5bf
commit
657d241e69
@@ -9,7 +9,7 @@
|
|||||||
#include <linux/pci_ids.h>
|
#include <linux/pci_ids.h>
|
||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
|
|
||||||
#include <vfio_util.h>
|
#include <libvfio.h>
|
||||||
|
|
||||||
#include "registers.h"
|
#include "registers.h"
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#include <linux/pci_ids.h>
|
#include <linux/pci_ids.h>
|
||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
|
|
||||||
#include <vfio_util.h>
|
#include <libvfio.h>
|
||||||
|
|
||||||
#include "hw.h"
|
#include "hw.h"
|
||||||
#include "registers.h"
|
#include "registers.h"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#ifndef SELFTESTS_VFIO_LIB_INCLUDE_VFIO_UTIL_H
|
#ifndef SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H
|
||||||
#define SELFTESTS_VFIO_LIB_INCLUDE_VFIO_UTIL_H
|
#define SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.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);
|
int vfio_pci_driver_memcpy_wait(struct vfio_pci_device *device);
|
||||||
void vfio_pci_driver_send_msi(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 */
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <linux/iommufd.h>
|
#include <linux/iommufd.h>
|
||||||
|
|
||||||
#include "../../../kselftest.h"
|
#include "../../../kselftest.h"
|
||||||
#include <vfio_util.h>
|
#include <libvfio.h>
|
||||||
|
|
||||||
const char *default_iommu_mode = "iommufd";
|
const char *default_iommu_mode = "iommufd";
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <linux/vfio.h>
|
#include <linux/vfio.h>
|
||||||
|
|
||||||
#include <vfio_util.h>
|
#include <libvfio.h>
|
||||||
|
|
||||||
struct iova_allocator *iova_allocator_init(struct iommu *iommu)
|
struct iova_allocator *iova_allocator_init(struct iommu *iommu)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <linux/vfio.h>
|
#include <linux/vfio.h>
|
||||||
|
|
||||||
#include "../../../kselftest.h"
|
#include "../../../kselftest.h"
|
||||||
#include <vfio_util.h>
|
#include <libvfio.h>
|
||||||
|
|
||||||
#define PCI_SYSFS_PATH "/sys/bus/pci/devices"
|
#define PCI_SYSFS_PATH "/sys/bus/pci/devices"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
#include "../../../kselftest.h"
|
#include "../../../kselftest.h"
|
||||||
#include <vfio_util.h>
|
#include <libvfio.h>
|
||||||
|
|
||||||
#ifdef __x86_64__
|
#ifdef __x86_64__
|
||||||
extern struct vfio_pci_driver_ops dsa_ops;
|
extern struct vfio_pci_driver_ops dsa_ops;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
#include <linux/vfio.h>
|
#include <linux/vfio.h>
|
||||||
|
|
||||||
#include <vfio_util.h>
|
#include <libvfio.h>
|
||||||
|
|
||||||
#include "../kselftest_harness.h"
|
#include "../kselftest_harness.h"
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <vfio_util.h>
|
#include <libvfio.h>
|
||||||
#include "../kselftest_harness.h"
|
#include "../kselftest_harness.h"
|
||||||
|
|
||||||
static const char iommu_dev_path[] = "/dev/iommu";
|
static const char iommu_dev_path[] = "/dev/iommu";
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
#include <linux/vfio.h>
|
#include <linux/vfio.h>
|
||||||
|
|
||||||
#include <vfio_util.h>
|
#include <libvfio.h>
|
||||||
|
|
||||||
#include "../kselftest_harness.h"
|
#include "../kselftest_harness.h"
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
#include <linux/vfio.h>
|
#include <linux/vfio.h>
|
||||||
|
|
||||||
#include <vfio_util.h>
|
#include <libvfio.h>
|
||||||
|
|
||||||
#include "../kselftest_harness.h"
|
#include "../kselftest_harness.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user