Skip to contentSkip to conversation

iommu/vt-d: No need to export dmar_platform_optin()

PATCH New Mika Westerberg 1 participant 1 message Apr 24, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu/vt-d: No need to export dmar_platform_optin()

This function is not called anymore outside of this driver so we can drop the export and move the declaration to the driver private header.

No functional changes.

---
 drivers/iommu/intel/dmar.c  | 1 -
 drivers/iommu/intel/iommu.h | 2 ++
 include/linux/dmar.h        | 7 -------
 3 files changed, 2 insertions(+), 8 deletions(-)
drivers/iommu/intel/dmar.c +0 -1
index 36d7427b1202..42b79043241c 100644
@@ -2480,4 +2480,3 @@ bool dmar_platform_optin(void)
 
 	return ret;
 }
-EXPORT_SYMBOL_GPL(dmar_platform_optin);
drivers/iommu/intel/iommu.h +2 -0
index 404d2476a877..4a965848ea0f 100644
@@ -1041,6 +1041,8 @@ static inline void context_set_sm_pre(struct context_entry *context)
 /* Convert value to context PASID directory size field coding. */
 #define context_pdts(pds)	(((pds) & 0x7) << 9)
 
+bool dmar_platform_optin(void);
+
 struct dmar_drhd_unit *dmar_find_matched_drhd_unit(struct pci_dev *dev);
 
 int dmar_enable_qi(struct intel_iommu *iommu);
include/linux/dmar.h +0 -7
index e34b601b71fd..233ef518dc99 100644
@@ -173,8 +173,6 @@ static inline int dmar_ir_hotplug(struct dmar_drhd_unit *dmaru, bool insert)
 { return 0; }
 #endif /* CONFIG_IRQ_REMAP */
 
-extern bool dmar_platform_optin(void);
-
 #else /* CONFIG_DMAR_TABLE */
 
 static inline int dmar_device_add(void *handle)
@@ -187,11 +185,6 @@ static inline int dmar_device_remove(void *handle)
 	return 0;
 }
 
-static inline bool dmar_platform_optin(void)
-{
-	return false;
-}
-
 static inline void detect_intel_iommu(void)
 {
 }
Signature · 1 line
2.43.0