Linux IOMMU Development
 help / color / mirror / Atom feed
* [PATCH] iommu: dart: Add missing module owner to ops structure
@ 2022-05-02  9:22 Hector Martin
  2022-05-02 15:23 ` Sven Peter
  2022-05-04  8:36 ` Joerg Roedel
  0 siblings, 2 replies; 3+ messages in thread
From: Hector Martin @ 2022-05-02  9:22 UTC (permalink / raw)
  To: Joerg Roedel, Will Deacon
  Cc: iommu, Hector Martin, linux-kernel, Alyssa Rosenzweig

This is required to make loading this as a module work.

Signed-off-by: Hector Martin <marcan@marcan.st>
---
 drivers/iommu/apple-dart.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iommu/apple-dart.c b/drivers/iommu/apple-dart.c
index decafb07ad08..a10a73282014 100644
--- a/drivers/iommu/apple-dart.c
+++ b/drivers/iommu/apple-dart.c
@@ -773,6 +773,7 @@ static const struct iommu_ops apple_dart_iommu_ops = {
 	.get_resv_regions = apple_dart_get_resv_regions,
 	.put_resv_regions = generic_iommu_put_resv_regions,
 	.pgsize_bitmap = -1UL, /* Restricted during dart probe */
+	.owner = THIS_MODULE,
 	.default_domain_ops = &(const struct iommu_domain_ops) {
 		.attach_dev	= apple_dart_attach_dev,
 		.detach_dev	= apple_dart_detach_dev,
-- 
2.35.1

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

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

* Re: [PATCH] iommu: dart: Add missing module owner to ops structure
  2022-05-02  9:22 [PATCH] iommu: dart: Add missing module owner to ops structure Hector Martin
@ 2022-05-02 15:23 ` Sven Peter
  2022-05-04  8:36 ` Joerg Roedel
  1 sibling, 0 replies; 3+ messages in thread
From: Sven Peter @ 2022-05-02 15:23 UTC (permalink / raw)
  To: Hector Martin, Joerg Roedel, Will Deacon
  Cc: Sven Peter, linux-kernel, Alyssa Rosenzweig

On Mon, May 2, 2022, at 11:22, Hector Martin wrote:
> This is required to make loading this as a module work.
>
> Signed-off-by: Hector Martin <marcan@marcan.st>

this could probably use a 
Fixes: 46d1fb072e76 ("iommu/dart: Add DART iommu driver")

but otherwise
Reviewed-by: Sven Peter <sven@svenpeter.dev>


Thanks,

Sven
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

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

* Re: [PATCH] iommu: dart: Add missing module owner to ops structure
  2022-05-02  9:22 [PATCH] iommu: dart: Add missing module owner to ops structure Hector Martin
  2022-05-02 15:23 ` Sven Peter
@ 2022-05-04  8:36 ` Joerg Roedel
  1 sibling, 0 replies; 3+ messages in thread
From: Joerg Roedel @ 2022-05-04  8:36 UTC (permalink / raw)
  To: Hector Martin; +Cc: iommu, Will Deacon, linux-kernel, Alyssa Rosenzweig

On Mon, May 02, 2022 at 06:22:38PM +0900, Hector Martin wrote:
> This is required to make loading this as a module work.
> 
> Signed-off-by: Hector Martin <marcan@marcan.st>
> ---
>  drivers/iommu/apple-dart.c | 1 +
>  1 file changed, 1 insertion(+)

Applied for v5.18, thanks.
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

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

end of thread, other threads:[~2022-05-04  8:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-02  9:22 [PATCH] iommu: dart: Add missing module owner to ops structure Hector Martin
2022-05-02 15:23 ` Sven Peter
2022-05-04  8:36 ` Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox