Skip to content

Commit 81ab989

Browse files
committed
vfio: Move container related MODULE_ALIAS statements into container.c
The miscdev is in container.c, so should these related MODULE_ALIAS statements. This is necessary for the next patch to be able to fully disable /dev/vfio/vfio. Fixes: cdc71fe ("vfio: Move container code into drivers/vfio/container.c") Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Yi Liu <[email protected]> Reviewed-by: Alex Williamson <[email protected]> Tested-by: Alex Williamson <[email protected]> Tested-by: Yi Liu <[email protected]> Tested-by: Lixiao Yang <[email protected]> Tested-by: Matthew Rosato <[email protected]> Tested-by: Yu He <[email protected]> Reported-by: Yi Liu <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 4741f2e commit 81ab989

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/vfio/container.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,3 +608,6 @@ void vfio_container_cleanup(void)
608608
misc_deregister(&vfio_dev);
609609
mutex_destroy(&vfio.iommu_drivers_lock);
610610
}
611+
612+
MODULE_ALIAS_MISCDEV(VFIO_MINOR);
613+
MODULE_ALIAS("devname:vfio/vfio");

drivers/vfio/vfio_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,6 +2073,4 @@ MODULE_VERSION(DRIVER_VERSION);
20732073
MODULE_LICENSE("GPL v2");
20742074
MODULE_AUTHOR(DRIVER_AUTHOR);
20752075
MODULE_DESCRIPTION(DRIVER_DESC);
2076-
MODULE_ALIAS_MISCDEV(VFIO_MINOR);
2077-
MODULE_ALIAS("devname:vfio/vfio");
20782076
MODULE_SOFTDEP("post: vfio_iommu_type1 vfio_iommu_spapr_tce");

0 commit comments

Comments
 (0)