Skip to content

Commit 1b032ec

Browse files
committed
iommu: Unexport iommu_group_get_for_dev()
The function is now only used in IOMMU core code and shouldn't be used outside of it anyway, so remove the export for it. Signed-off-by: Joerg Roedel <[email protected]> Tested-by: Marek Szyprowski <[email protected]> Acked-by: Marek Szyprowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 4e8906f commit 1b032ec

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/iommu/iommu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static void __iommu_detach_group(struct iommu_domain *domain,
9191
struct iommu_group *group);
9292
static int iommu_create_device_direct_mappings(struct iommu_group *group,
9393
struct device *dev);
94+
static struct iommu_group *iommu_group_get_for_dev(struct device *dev);
9495

9596
#define IOMMU_GROUP_ATTR(_name, _mode, _show, _store) \
9697
struct iommu_group_attribute iommu_group_attr_##_name = \
@@ -1500,7 +1501,7 @@ static int iommu_alloc_default_domain(struct device *dev)
15001501
* to the returned IOMMU group, which will already include the provided
15011502
* device. The reference should be released with iommu_group_put().
15021503
*/
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)
15041505
{
15051506
const struct iommu_ops *ops = dev->bus->iommu_ops;
15061507
struct iommu_group *group;
@@ -1531,7 +1532,6 @@ struct iommu_group *iommu_group_get_for_dev(struct device *dev)
15311532

15321533
return ERR_PTR(ret);
15331534
}
1534-
EXPORT_SYMBOL(iommu_group_get_for_dev);
15351535

15361536
struct iommu_domain *iommu_group_default_domain(struct iommu_group *group)
15371537
{

include/linux/iommu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,6 @@ extern int iommu_page_response(struct device *dev,
527527
struct iommu_page_response *msg);
528528

529529
extern int iommu_group_id(struct iommu_group *group);
530-
extern struct iommu_group *iommu_group_get_for_dev(struct device *dev);
531530
extern struct iommu_domain *iommu_group_default_domain(struct iommu_group *);
532531

533532
extern int iommu_domain_get_attr(struct iommu_domain *domain, enum iommu_attr,

0 commit comments

Comments
 (0)