File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ static void __iommu_detach_group(struct iommu_domain *domain,
91
91
struct iommu_group * group );
92
92
static int iommu_create_device_direct_mappings (struct iommu_group * group ,
93
93
struct device * dev );
94
+ static struct iommu_group * iommu_group_get_for_dev (struct device * dev );
94
95
95
96
#define IOMMU_GROUP_ATTR (_name , _mode , _show , _store ) \
96
97
struct iommu_group_attribute iommu_group_attr_##_name = \
@@ -1500,7 +1501,7 @@ static int iommu_alloc_default_domain(struct device *dev)
1500
1501
* to the returned IOMMU group, which will already include the provided
1501
1502
* device. The reference should be released with iommu_group_put().
1502
1503
*/
1503
- struct iommu_group * iommu_group_get_for_dev (struct device * dev )
1504
+ static struct iommu_group * iommu_group_get_for_dev (struct device * dev )
1504
1505
{
1505
1506
const struct iommu_ops * ops = dev -> bus -> iommu_ops ;
1506
1507
struct iommu_group * group ;
@@ -1531,7 +1532,6 @@ struct iommu_group *iommu_group_get_for_dev(struct device *dev)
1531
1532
1532
1533
return ERR_PTR (ret );
1533
1534
}
1534
- EXPORT_SYMBOL (iommu_group_get_for_dev );
1535
1535
1536
1536
struct iommu_domain * iommu_group_default_domain (struct iommu_group * group )
1537
1537
{
Original file line number Diff line number Diff line change @@ -527,7 +527,6 @@ extern int iommu_page_response(struct device *dev,
527
527
struct iommu_page_response * msg );
528
528
529
529
extern int iommu_group_id (struct iommu_group * group );
530
- extern struct iommu_group * iommu_group_get_for_dev (struct device * dev );
531
530
extern struct iommu_domain * iommu_group_default_domain (struct iommu_group * );
532
531
533
532
extern int iommu_domain_get_attr (struct iommu_domain * domain , enum iommu_attr ,
You can’t perform that action at this time.
0 commit comments