diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2022-09-22 21:20:19 +0200 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2022-09-22 23:46:06 +0200 |
commit | e3bb4de0a0380910180e758a30ccfda65f8e286e (patch) | |
tree | 262973c61b519a3a821ae5758f38ea878b5b1838 /drivers/vfio | |
parent | vfio: Add struct device to vfio_device (diff) | |
download | linux-e3bb4de0a0380910180e758a30ccfda65f8e286e.tar.xz linux-e3bb4de0a0380910180e758a30ccfda65f8e286e.zip |
vfio: Add header guards and includes to drivers/vfio/vfio.h
As is normal for headers.
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/1-v3-297af71838d2+b9-vfio_container_split_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio')
-rw-r--r-- | drivers/vfio/vfio.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/vfio/vfio.h b/drivers/vfio/vfio.h index 503bea6c843d..093784f1dea7 100644 --- a/drivers/vfio/vfio.h +++ b/drivers/vfio/vfio.h @@ -3,6 +3,14 @@ * Copyright (C) 2012 Red Hat, Inc. All rights reserved. * Author: Alex Williamson <alex.williamson@redhat.com> */ +#ifndef __VFIO_VFIO_H__ +#define __VFIO_VFIO_H__ + +#include <linux/device.h> +#include <linux/cdev.h> +#include <linux/module.h> + +struct iommu_group; enum vfio_group_type { /* @@ -69,3 +77,5 @@ struct vfio_iommu_driver_ops { int vfio_register_iommu_driver(const struct vfio_iommu_driver_ops *ops); void vfio_unregister_iommu_driver(const struct vfio_iommu_driver_ops *ops); + +#endif |