Skip to content

Commit ab0a711

Browse files
John Garryjoergroedel
authored andcommitted
iommu: Delete iommu_domain_window_disable()
Function iommu_domain_window_disable() is not referenced in the tree, so delete it. Signed-off-by: John Garry <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent b91910a commit ab0a711

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

drivers/iommu/iommu.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,15 +2598,6 @@ int iommu_domain_window_enable(struct iommu_domain *domain, u32 wnd_nr,
25982598
}
25992599
EXPORT_SYMBOL_GPL(iommu_domain_window_enable);
26002600

2601-
void iommu_domain_window_disable(struct iommu_domain *domain, u32 wnd_nr)
2602-
{
2603-
if (unlikely(domain->ops->domain_window_disable == NULL))
2604-
return;
2605-
2606-
return domain->ops->domain_window_disable(domain, wnd_nr);
2607-
}
2608-
EXPORT_SYMBOL_GPL(iommu_domain_window_disable);
2609-
26102601
/**
26112602
* report_iommu_fault() - report about an IOMMU fault to the IOMMU framework
26122603
* @domain: the iommu domain where the fault has happened

include/linux/iommu.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,6 @@ extern int iommu_domain_set_attr(struct iommu_domain *domain, enum iommu_attr,
514514
extern int iommu_domain_window_enable(struct iommu_domain *domain, u32 wnd_nr,
515515
phys_addr_t offset, u64 size,
516516
int prot);
517-
extern void iommu_domain_window_disable(struct iommu_domain *domain, u32 wnd_nr);
518517

519518
extern int report_iommu_fault(struct iommu_domain *domain, struct device *dev,
520519
unsigned long iova, int flags);
@@ -746,11 +745,6 @@ static inline int iommu_domain_window_enable(struct iommu_domain *domain,
746745
return -ENODEV;
747746
}
748747

749-
static inline void iommu_domain_window_disable(struct iommu_domain *domain,
750-
u32 wnd_nr)
751-
{
752-
}
753-
754748
static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova)
755749
{
756750
return 0;

0 commit comments

Comments
 (0)