iommu/virtio: Add missing MODULE_DEVICE_TABLE
Subsystems (4)
PATCH 1/1 iommu/virtio: Add missing MODULE_DEVICE_TABLE
This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.
--- drivers/iommu/virtio-iommu.c | 1 + 1 file changed, 1 insertion(+)
drivers/iommu/virtio-iommu.c +1 -0
@@ -1136,6 +1136,7 @@ static struct virtio_device_id id_table[] = { { VIRTIO_ID_IOMMU, VIRTIO_DEV_ANY_ID }, { 0 }, }; +MODULE_DEVICE_TABLE (virtio, id_table);static struct virtio_driver virtio_iommu_drv = { .driver.name = KBUILD_MODNAME,
Quoted 6 lines · Bixuan Cui
This patch adds missing
MODULE_DEVICE_TABLEdefinition which generates correct modalias for automatic loading of this driver when it is built as an external module.Reported-by Hulk Robot <[email protected]>Signed-off-by Bixuan Cui <[email protected]>
Quoted 10 lines
--- drivers/iommu/virtio-iommu.c | 1 + 1 file changed, 1 insertion(+)drivers/iommu/virtio-iommu.c +0
-0
drivers/iommu/virtio-iommu.c static struct virtio_device_id id_table[] = { · line 1142
Quoted 7 lines
drivers/iommu/virtio-iommu.c +1
-0@@ -1136,6 +1136,7 @@ static struct virtio_device_id id_table[] = { { VIRTIO_ID_IOMMU, VIRTIO_DEV_ANY_ID }, { 0 }, }; +MODULE_DEVICE_TABLE (virtio, id_table);static struct virtio_driver virtio_iommu_drv = { .driver.name = KBUILD_MODNAME,
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Joerg Roedel
maintainerQuoted 9 lines · Bixuan Cui
This patch adds missing
MODULE_DEVICE_TABLEdefinition which generates correct modalias for automatic loading of this driver when it is built as an external module.Reported-by Hulk Robot <[email protected]>Signed-off-by Bixuan Cui <[email protected]>--- drivers/iommu/virtio-iommu.c | 1 + 1 file changed, 1 insertion(+)
Applied for v5.13, thanks.