iommu/vt-d: No need to export dmar_platform_optin()
Subsystems (2)
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.
Signed-off-by Mika Westerberg <[email protected]>
--- 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
@@ -2480,4 +2480,3 @@ bool dmar_platform_optin(void)return ret; } -EXPORT_SYMBOL_GPL (dmar_platform_optin);
drivers/iommu/intel/iommu.h +2 -0
@@ -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
@@ -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