This moves intel_iommu_enable_pasid() out of the scope of CONFIG_INTEL_IOMMU_SVM with more and more features requiring pasid function.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -650,6 +650,7 @@ struct intel_iommu *domain_get_iommu(struct dmar_domain *domain); · 649 unmodified lines | ||
| 650 | 650 | int for_each_device_domain(int (*fn)(struct device_domain_info *info, |
| 651 | 651 | void *data), void *data); |
| 652 | 652 | void iommu_flush_write_buffer(struct intel_iommu *iommu); |
| 653 | +int intel_iommu_enable_pasid(struct intel_iommu *iommu, struct device *dev); | |
| 653 | 654 | |
| 654 | 655 | #ifdef CONFIG_INTEL_IOMMU_SVM |
| 655 | 656 | int intel_svm_init(struct intel_iommu *iommu); |
| @@ -679,7 +680,6 @@ struct intel_svm { · 23 unmodified lines | ||
| 679 | 680 | struct list_head list; |
| 680 | 681 | }; |
| 681 | 682 | |
| 682 | −extern int intel_iommu_enable_pasid(struct intel_iommu *iommu, struct intel_svm_dev *sdev); | |
| 683 | 683 | extern struct intel_iommu *intel_svm_device_to_iommu(struct device *dev); |
| 684 | 684 | #endif |
| 685 | 685 | |