diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2022-12-05 16:29:20 +0100 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2022-12-05 20:04:32 +0100 |
commit | e2d55709398e62cf53e5c7df3758ae52cc62d63a (patch) | |
tree | 26c5eb9f3188af9e40236e9a999329dd2848d35b /drivers/vfio/vfio.h | |
parent | vfio: Remove CONFIG_VFIO_SPAPR_EEH (diff) | |
download | linux-e2d55709398e62cf53e5c7df3758ae52cc62d63a.tar.xz linux-e2d55709398e62cf53e5c7df3758ae52cc62d63a.zip |
vfio: Fold vfio_virqfd.ko into vfio.ko
This is only 1.8k, putting it in its own module is not really
necessary. The kconfig infrastructure is still there to completely remove
it for systems that are trying for small footprint.
Put it in the main vfio.ko module now that kbuild can support multiple .c
files.
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Link: https://lore.kernel.org/r/5-v5-fc5346cacfd4+4c482-vfio_modules_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/vfio.h')
-rw-r--r-- | drivers/vfio/vfio.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/vfio/vfio.h b/drivers/vfio/vfio.h index bcad54bbab08..a7113b4baaa2 100644 --- a/drivers/vfio/vfio.h +++ b/drivers/vfio/vfio.h @@ -124,6 +124,19 @@ long vfio_container_ioctl_check_extension(struct vfio_container *container, int __init vfio_container_init(void); void vfio_container_cleanup(void); +#if IS_ENABLED(CONFIG_VFIO_VIRQFD) +int __init vfio_virqfd_init(void); +void vfio_virqfd_exit(void); +#else +static inline int __init vfio_virqfd_init(void) +{ + return 0; +} +static inline void vfio_virqfd_exit(void) +{ +} +#endif + #ifdef CONFIG_VFIO_NOIOMMU extern bool vfio_noiommu __read_mostly; #else |