Skip to content

Commit de1dda7

Browse files
jgunthorpejoergroedel
authored andcommitted
iommu/vt-d: Remove domain_alloc_paging()
This is duplicated by intel_iommu_domain_alloc_paging_flags(), just remove it. Signed-off-by: Jason Gunthorpe <[email protected]> Reviewed-by: Yi Liu <[email protected]> Reviewed-by: Jerry Snitselaar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 60f030f commit de1dda7

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4446,21 +4446,6 @@ static struct iommu_domain identity_domain = {
44464446
},
44474447
};
44484448

4449-
static struct iommu_domain *intel_iommu_domain_alloc_paging(struct device *dev)
4450-
{
4451-
struct device_domain_info *info = dev_iommu_priv_get(dev);
4452-
struct intel_iommu *iommu = info->iommu;
4453-
struct dmar_domain *dmar_domain;
4454-
bool first_stage;
4455-
4456-
first_stage = first_level_by_default(iommu);
4457-
dmar_domain = paging_domain_alloc(dev, first_stage);
4458-
if (IS_ERR(dmar_domain))
4459-
return ERR_CAST(dmar_domain);
4460-
4461-
return &dmar_domain->domain;
4462-
}
4463-
44644449
const struct iommu_ops intel_iommu_ops = {
44654450
.blocked_domain = &blocking_domain,
44664451
.release_domain = &blocking_domain,
@@ -4469,7 +4454,6 @@ const struct iommu_ops intel_iommu_ops = {
44694454
.hw_info = intel_iommu_hw_info,
44704455
.domain_alloc_paging_flags = intel_iommu_domain_alloc_paging_flags,
44714456
.domain_alloc_sva = intel_svm_domain_alloc,
4472-
.domain_alloc_paging = intel_iommu_domain_alloc_paging,
44734457
.domain_alloc_nested = intel_iommu_domain_alloc_nested,
44744458
.probe_device = intel_iommu_probe_device,
44754459
.release_device = intel_iommu_release_device,

0 commit comments

Comments
 (0)