Linux IOMMU Development
 help / color / mirror / Atom feed
* [PATCH] iommu/vt-d: remove the CONFIG_X86 wrapping from iommu init hook
@ 2025-06-16 13:17 Vineeth Pillai (Google)
  2025-06-17 15:55 ` Jason Gunthorpe
  2025-07-14  4:59 ` Baolu Lu
  0 siblings, 2 replies; 3+ messages in thread
From: Vineeth Pillai (Google) @ 2025-06-16 13:17 UTC (permalink / raw)
  To: dwmw2, baolu.lu; +Cc: Vineeth Pillai (Google), fujita.tomonori, iommu

iommu init hook is wrapped in CONFI_X86 and is a remnant of dmar.c when
it was a common code in "drivers/pci/dmar.c". This was added in commit
(9d5ce73a64be2 x86: intel-iommu: Convert detect_intel_iommu to use iommu_init hook)

Now this is built only for x86. This config wrap could be removed.

Signed-off-by: Vineeth Pillai (Google) <vineeth@bitbyteword.org>
---
 drivers/iommu/intel/dmar.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/iommu/intel/dmar.c b/drivers/iommu/intel/dmar.c
index b61d9ea27aa9..ec975c73cfe6 100644
--- a/drivers/iommu/intel/dmar.c
+++ b/drivers/iommu/intel/dmar.c
@@ -935,14 +935,11 @@ void __init detect_intel_iommu(void)
 		pci_request_acs();
 	}
 
-#ifdef CONFIG_X86
 	if (!ret) {
 		x86_init.iommu.iommu_init = intel_iommu_init;
 		x86_platform.iommu_shutdown = intel_iommu_shutdown;
 	}
 
-#endif
-
 	if (dmar_tbl) {
 		acpi_put_table(dmar_tbl);
 		dmar_tbl = NULL;
-- 
2.50.0.rc2.692.g299adb8693-goog


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

end of thread, other threads:[~2025-07-14  5:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-16 13:17 [PATCH] iommu/vt-d: remove the CONFIG_X86 wrapping from iommu init hook Vineeth Pillai (Google)
2025-06-17 15:55 ` Jason Gunthorpe
2025-07-14  4:59 ` Baolu Lu

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