@@ -1549,7 +1549,6 @@ static void arm_smmu_write_ste(struct arm_smmu_master *master, u32 sid,
1549
1549
}
1550
1550
}
1551
1551
1552
- VISIBLE_IF_KUNIT
1553
1552
void arm_smmu_make_abort_ste (struct arm_smmu_ste * target )
1554
1553
{
1555
1554
memset (target , 0 , sizeof (* target ));
@@ -1632,7 +1631,6 @@ void arm_smmu_make_cdtable_ste(struct arm_smmu_ste *target,
1632
1631
}
1633
1632
EXPORT_SYMBOL_IF_KUNIT (arm_smmu_make_cdtable_ste );
1634
1633
1635
- VISIBLE_IF_KUNIT
1636
1634
void arm_smmu_make_s2_domain_ste (struct arm_smmu_ste * target ,
1637
1635
struct arm_smmu_master * master ,
1638
1636
struct arm_smmu_domain * smmu_domain ,
@@ -2505,8 +2503,8 @@ arm_smmu_get_step_for_sid(struct arm_smmu_device *smmu, u32 sid)
2505
2503
}
2506
2504
}
2507
2505
2508
- static void arm_smmu_install_ste_for_dev (struct arm_smmu_master * master ,
2509
- const struct arm_smmu_ste * target )
2506
+ void arm_smmu_install_ste_for_dev (struct arm_smmu_master * master ,
2507
+ const struct arm_smmu_ste * target )
2510
2508
{
2511
2509
int i , j ;
2512
2510
struct arm_smmu_device * smmu = master -> smmu ;
@@ -2671,16 +2669,6 @@ static void arm_smmu_remove_master_domain(struct arm_smmu_master *master,
2671
2669
spin_unlock_irqrestore (& smmu_domain -> devices_lock , flags );
2672
2670
}
2673
2671
2674
- struct arm_smmu_attach_state {
2675
- /* Inputs */
2676
- struct iommu_domain * old_domain ;
2677
- struct arm_smmu_master * master ;
2678
- bool cd_needs_ats ;
2679
- ioasid_t ssid ;
2680
- /* Resulting state */
2681
- bool ats_enabled ;
2682
- };
2683
-
2684
2672
/*
2685
2673
* Start the sequence to attach a domain to a master. The sequence contains three
2686
2674
* steps:
@@ -2701,8 +2689,8 @@ struct arm_smmu_attach_state {
2701
2689
* new_domain can be a non-paging domain. In this case ATS will not be enabled,
2702
2690
* and invalidations won't be tracked.
2703
2691
*/
2704
- static int arm_smmu_attach_prepare (struct arm_smmu_attach_state * state ,
2705
- struct iommu_domain * new_domain )
2692
+ int arm_smmu_attach_prepare (struct arm_smmu_attach_state * state ,
2693
+ struct iommu_domain * new_domain )
2706
2694
{
2707
2695
struct arm_smmu_master * master = state -> master ;
2708
2696
struct arm_smmu_master_domain * master_domain ;
@@ -2784,7 +2772,7 @@ static int arm_smmu_attach_prepare(struct arm_smmu_attach_state *state,
2784
2772
* completes synchronizing the PCI device's ATC and finishes manipulating the
2785
2773
* smmu_domain->devices list.
2786
2774
*/
2787
- static void arm_smmu_attach_commit (struct arm_smmu_attach_state * state )
2775
+ void arm_smmu_attach_commit (struct arm_smmu_attach_state * state )
2788
2776
{
2789
2777
struct arm_smmu_master * master = state -> master ;
2790
2778
0 commit comments