linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] iommu/virtio: Add missing MODULE_DEVICE_TABLE
@ 2021-05-08  3:14 Bixuan Cui
  2021-05-12 15:30 ` Jean-Philippe Brucker
  2021-05-18  9:24 ` Joerg Roedel
  0 siblings, 2 replies; 3+ messages in thread
From: Bixuan Cui @ 2021-05-08  3:14 UTC (permalink / raw)
  To: cuibixuan, Jean-Philippe Brucker, Joerg Roedel, Will Deacon
  Cc: virtualization, iommu, linux-kernel, kernel-janitors

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.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
---
 drivers/iommu/virtio-iommu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iommu/virtio-iommu.c b/drivers/iommu/virtio-iommu.c
index 7c02481a81b4..c6e5ee4d9cef 100644
--- a/drivers/iommu/virtio-iommu.c
+++ b/drivers/iommu/virtio-iommu.c
@@ -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,


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] iommu/virtio: Add missing MODULE_DEVICE_TABLE
  2021-05-08  3:14 [PATCH -next] iommu/virtio: Add missing MODULE_DEVICE_TABLE Bixuan Cui
@ 2021-05-12 15:30 ` Jean-Philippe Brucker
  2021-05-18  9:24 ` Joerg Roedel
  1 sibling, 0 replies; 3+ messages in thread
From: Jean-Philippe Brucker @ 2021-05-12 15:30 UTC (permalink / raw)
  To: Bixuan Cui
  Cc: Joerg Roedel, Will Deacon, virtualization, iommu, linux-kernel,
	kernel-janitors

On Sat, May 08, 2021 at 11:14:51AM +0800, Bixuan Cui wrote:
> 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.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>

Fixes: fa4afd78ea12 ("iommu/virtio: Build virtio-iommu as module")
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>

> ---
>  drivers/iommu/virtio-iommu.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/iommu/virtio-iommu.c b/drivers/iommu/virtio-iommu.c
> index 7c02481a81b4..c6e5ee4d9cef 100644
> --- a/drivers/iommu/virtio-iommu.c
> +++ b/drivers/iommu/virtio-iommu.c
> @@ -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,
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] iommu/virtio: Add missing MODULE_DEVICE_TABLE
  2021-05-08  3:14 [PATCH -next] iommu/virtio: Add missing MODULE_DEVICE_TABLE Bixuan Cui
  2021-05-12 15:30 ` Jean-Philippe Brucker
@ 2021-05-18  9:24 ` Joerg Roedel
  1 sibling, 0 replies; 3+ messages in thread
From: Joerg Roedel @ 2021-05-18  9:24 UTC (permalink / raw)
  To: Bixuan Cui
  Cc: Jean-Philippe Brucker, Will Deacon, virtualization, iommu,
	linux-kernel, kernel-janitors

On Sat, May 08, 2021 at 11:14:51AM +0800, Bixuan Cui wrote:
> 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.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
> ---
>  drivers/iommu/virtio-iommu.c | 1 +
>  1 file changed, 1 insertion(+)

Applied for v5.13, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-18  9:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-08  3:14 [PATCH -next] iommu/virtio: Add missing MODULE_DEVICE_TABLE Bixuan Cui
2021-05-12 15:30 ` Jean-Philippe Brucker
2021-05-18  9:24 ` Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).