File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 6
6
7
7
#include <linux/iommu.h>
8
8
9
+ static inline const struct iommu_ops * dev_iommu_ops (struct device * dev )
10
+ {
11
+ /*
12
+ * Assume that valid ops must be installed if iommu_probe_device()
13
+ * has succeeded. The device ops are essentially for internal use
14
+ * within the IOMMU subsystem itself, so we should be able to trust
15
+ * ourselves not to misuse the helper.
16
+ */
17
+ return dev -> iommu -> iommu_dev -> ops ;
18
+ }
19
+
9
20
int iommu_group_replace_domain (struct iommu_group * group ,
10
21
struct iommu_domain * new_domain );
11
22
Original file line number Diff line number Diff line change @@ -450,17 +450,6 @@ static inline void iommu_iotlb_gather_init(struct iommu_iotlb_gather *gather)
450
450
};
451
451
}
452
452
453
- static inline const struct iommu_ops * dev_iommu_ops (struct device * dev )
454
- {
455
- /*
456
- * Assume that valid ops must be installed if iommu_probe_device()
457
- * has succeeded. The device ops are essentially for internal use
458
- * within the IOMMU subsystem itself, so we should be able to trust
459
- * ourselves not to misuse the helper.
460
- */
461
- return dev -> iommu -> iommu_dev -> ops ;
462
- }
463
-
464
453
extern int bus_iommu_probe (const struct bus_type * bus );
465
454
extern bool iommu_present (const struct bus_type * bus );
466
455
extern bool device_iommu_capable (struct device * dev , enum iommu_cap cap );
You can’t perform that action at this time.
0 commit comments