File tree Expand file tree Collapse file tree 2 files changed +0
-31
lines changed Expand file tree Collapse file tree 2 files changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -1840,31 +1840,6 @@ int bus_iommu_probe(const struct bus_type *bus)
1840
1840
return 0 ;
1841
1841
}
1842
1842
1843
- /**
1844
- * iommu_present() - make platform-specific assumptions about an IOMMU
1845
- * @bus: bus to check
1846
- *
1847
- * Do not use this function. You want device_iommu_mapped() instead.
1848
- *
1849
- * Return: true if some IOMMU is present and aware of devices on the given bus;
1850
- * in general it may not be the only IOMMU, and it may not have anything to do
1851
- * with whatever device you are ultimately interested in.
1852
- */
1853
- bool iommu_present (const struct bus_type * bus )
1854
- {
1855
- bool ret = false;
1856
-
1857
- for (int i = 0 ; i < ARRAY_SIZE (iommu_buses ); i ++ ) {
1858
- if (iommu_buses [i ] == bus ) {
1859
- spin_lock (& iommu_device_lock );
1860
- ret = !list_empty (& iommu_device_list );
1861
- spin_unlock (& iommu_device_lock );
1862
- }
1863
- }
1864
- return ret ;
1865
- }
1866
- EXPORT_SYMBOL_GPL (iommu_present );
1867
-
1868
1843
/**
1869
1844
* device_iommu_capable() - check for a general IOMMU capability
1870
1845
* @dev: device to which the capability would be relevant, if available
Original file line number Diff line number Diff line change @@ -785,7 +785,6 @@ static inline void iommu_iotlb_gather_init(struct iommu_iotlb_gather *gather)
785
785
}
786
786
787
787
extern int bus_iommu_probe (const struct bus_type * bus );
788
- extern bool iommu_present (const struct bus_type * bus );
789
788
extern bool device_iommu_capable (struct device * dev , enum iommu_cap cap );
790
789
extern bool iommu_group_has_isolated_msi (struct iommu_group * group );
791
790
extern struct iommu_domain * iommu_domain_alloc (const struct bus_type * bus );
@@ -1081,11 +1080,6 @@ struct iommu_iotlb_gather {};
1081
1080
struct iommu_dirty_bitmap {};
1082
1081
struct iommu_dirty_ops {};
1083
1082
1084
- static inline bool iommu_present (const struct bus_type * bus )
1085
- {
1086
- return false;
1087
- }
1088
-
1089
1083
static inline bool device_iommu_capable (struct device * dev , enum iommu_cap cap )
1090
1084
{
1091
1085
return false;
You can’t perform that action at this time.
0 commit comments