@@ -343,8 +343,7 @@ static int g_num_of_iommus;
343
343
344
344
static void domain_exit (struct dmar_domain * domain );
345
345
static void domain_remove_dev_info (struct dmar_domain * domain );
346
- static void dmar_remove_one_dev_info (struct dmar_domain * domain ,
347
- struct device * dev );
346
+ static void dmar_remove_one_dev_info (struct device * dev );
348
347
static void __dmar_remove_one_dev_info (struct device_domain_info * info );
349
348
static void domain_context_clear (struct intel_iommu * iommu ,
350
349
struct device * dev );
@@ -2546,7 +2545,7 @@ static struct dmar_domain *dmar_insert_one_dev_info(struct intel_iommu *iommu,
2546
2545
ret = intel_pasid_alloc_table (dev );
2547
2546
if (ret ) {
2548
2547
dev_err (dev , "PASID table allocation failed\n" );
2549
- dmar_remove_one_dev_info (domain , dev );
2548
+ dmar_remove_one_dev_info (dev );
2550
2549
return NULL ;
2551
2550
}
2552
2551
@@ -2561,14 +2560,14 @@ static struct dmar_domain *dmar_insert_one_dev_info(struct intel_iommu *iommu,
2561
2560
spin_unlock (& iommu -> lock );
2562
2561
if (ret ) {
2563
2562
dev_err (dev , "Setup RID2PASID failed\n" );
2564
- dmar_remove_one_dev_info (domain , dev );
2563
+ dmar_remove_one_dev_info (dev );
2565
2564
return NULL ;
2566
2565
}
2567
2566
}
2568
2567
2569
2568
if (dev && domain_context_mapping (domain , dev )) {
2570
2569
dev_err (dev , "Domain context map failed\n" );
2571
- dmar_remove_one_dev_info (domain , dev );
2570
+ dmar_remove_one_dev_info (dev );
2572
2571
return NULL ;
2573
2572
}
2574
2573
@@ -3621,7 +3620,7 @@ static int iommu_no_mapping(struct device *dev)
3621
3620
* 32 bit DMA is removed from si_domain and fall back
3622
3621
* to non-identity mapping.
3623
3622
*/
3624
- dmar_remove_one_dev_info (si_domain , dev );
3623
+ dmar_remove_one_dev_info (dev );
3625
3624
dev_info (dev , "32bit DMA uses non-identity mapping\n" );
3626
3625
return 0 ;
3627
3626
}
@@ -4576,7 +4575,7 @@ static int device_notifier(struct notifier_block *nb,
4576
4575
if (!domain )
4577
4576
return 0 ;
4578
4577
4579
- dmar_remove_one_dev_info (domain , dev );
4578
+ dmar_remove_one_dev_info (dev );
4580
4579
if (!domain_type_is_vm_or_si (domain ) && list_empty (& domain -> devices ))
4581
4580
domain_exit (domain );
4582
4581
@@ -4989,8 +4988,7 @@ static void __dmar_remove_one_dev_info(struct device_domain_info *info)
4989
4988
free_devinfo_mem (info );
4990
4989
}
4991
4990
4992
- static void dmar_remove_one_dev_info (struct dmar_domain * domain ,
4993
- struct device * dev )
4991
+ static void dmar_remove_one_dev_info (struct device * dev )
4994
4992
{
4995
4993
struct device_domain_info * info ;
4996
4994
unsigned long flags ;
@@ -5079,7 +5077,7 @@ static int intel_iommu_attach_device(struct iommu_domain *domain,
5079
5077
old_domain = find_domain (dev );
5080
5078
if (old_domain ) {
5081
5079
rcu_read_lock ();
5082
- dmar_remove_one_dev_info (old_domain , dev );
5080
+ dmar_remove_one_dev_info (dev );
5083
5081
rcu_read_unlock ();
5084
5082
5085
5083
if (!domain_type_is_vm_or_si (old_domain ) &&
@@ -5126,7 +5124,7 @@ static int intel_iommu_attach_device(struct iommu_domain *domain,
5126
5124
static void intel_iommu_detach_device (struct iommu_domain * domain ,
5127
5125
struct device * dev )
5128
5126
{
5129
- dmar_remove_one_dev_info (to_dmar_domain ( domain ), dev );
5127
+ dmar_remove_one_dev_info (dev );
5130
5128
}
5131
5129
5132
5130
static int intel_iommu_map (struct iommu_domain * domain ,
0 commit comments