@@ -282,7 +282,6 @@ static LIST_HEAD(dmar_satc_units);
282
282
#define for_each_rmrr_units (rmrr ) \
283
283
list_for_each_entry(rmrr, &dmar_rmrr_units, list)
284
284
285
- static void device_block_translation (struct device * dev );
286
285
static void intel_iommu_domain_free (struct iommu_domain * domain );
287
286
288
287
int dmar_disabled = !IS_ENABLED (CONFIG_INTEL_IOMMU_DEFAULT_ON );
@@ -561,7 +560,7 @@ static unsigned long domain_super_pgsize_bitmap(struct dmar_domain *domain)
561
560
}
562
561
563
562
/* Some capabilities may be different across iommus */
564
- static void domain_update_iommu_cap (struct dmar_domain * domain )
563
+ void domain_update_iommu_cap (struct dmar_domain * domain )
565
564
{
566
565
domain_update_iommu_coherency (domain );
567
566
domain -> iommu_superpage = domain_update_iommu_superpage (domain , NULL );
@@ -1779,8 +1778,7 @@ static struct dmar_domain *alloc_domain(unsigned int type)
1779
1778
return domain ;
1780
1779
}
1781
1780
1782
- static int domain_attach_iommu (struct dmar_domain * domain ,
1783
- struct intel_iommu * iommu )
1781
+ int domain_attach_iommu (struct dmar_domain * domain , struct intel_iommu * iommu )
1784
1782
{
1785
1783
struct iommu_domain_info * info , * curr ;
1786
1784
unsigned long ndomains ;
@@ -1829,8 +1827,7 @@ static int domain_attach_iommu(struct dmar_domain *domain,
1829
1827
return ret ;
1830
1828
}
1831
1829
1832
- static void domain_detach_iommu (struct dmar_domain * domain ,
1833
- struct intel_iommu * iommu )
1830
+ void domain_detach_iommu (struct dmar_domain * domain , struct intel_iommu * iommu )
1834
1831
{
1835
1832
struct iommu_domain_info * info ;
1836
1833
@@ -3975,7 +3972,7 @@ static void dmar_remove_one_dev_info(struct device *dev)
3975
3972
* all DMA requests without PASID from the device are blocked. If the page
3976
3973
* table has been set, clean up the data structures.
3977
3974
*/
3978
- static void device_block_translation (struct device * dev )
3975
+ void device_block_translation (struct device * dev )
3979
3976
{
3980
3977
struct device_domain_info * info = dev_iommu_priv_get (dev );
3981
3978
struct intel_iommu * iommu = info -> iommu ;
@@ -4128,8 +4125,8 @@ static void intel_iommu_domain_free(struct iommu_domain *domain)
4128
4125
domain_exit (to_dmar_domain (domain ));
4129
4126
}
4130
4127
4131
- static int prepare_domain_attach_device (struct iommu_domain * domain ,
4132
- struct device * dev )
4128
+ int prepare_domain_attach_device (struct iommu_domain * domain ,
4129
+ struct device * dev )
4133
4130
{
4134
4131
struct dmar_domain * dmar_domain = to_dmar_domain (domain );
4135
4132
struct intel_iommu * iommu ;
0 commit comments