diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2023-01-31 15:37:30 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-02-03 11:06:01 +0100 |
commit | 557abbd60c1676cbde5326a17dd517ec48f80bb6 (patch) | |
tree | 0f250246cb6862bab35f0810378c4248ade72260 /drivers/iommu | |
parent | d82e6ae67ac2f9d6ba51690353c477b340bba6b5 (diff) | |
download | linux-557abbd60c1676cbde5326a17dd517ec48f80bb6.tar.gz linux-557abbd60c1676cbde5326a17dd517ec48f80bb6.tar.bz2 linux-557abbd60c1676cbde5326a17dd517ec48f80bb6.zip |
iommu/vt-d: Remove unused fields in svm structures
They aren't used anywhere. Remove them to avoid dead code.
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20230109014955.147068-3-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/intel/iommu.h | 4 | ||||
-rw-r--r-- | drivers/iommu/intel/svm.c | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/drivers/iommu/intel/iommu.h b/drivers/iommu/intel/iommu.h index f89f63d7a72a..e7c732979364 100644 --- a/drivers/iommu/intel/iommu.h +++ b/drivers/iommu/intel/iommu.h @@ -762,18 +762,14 @@ struct intel_svm_dev { struct device *dev; struct intel_iommu *iommu; struct iommu_sva sva; - u32 pasid; int users; u16 did; - u16 dev_iotlb:1; u16 sid, qdep; }; struct intel_svm { struct mmu_notifier notifier; struct mm_struct *mm; - - unsigned int flags; u32 pasid; struct list_head devs; }; diff --git a/drivers/iommu/intel/svm.c b/drivers/iommu/intel/svm.c index d38a54396c23..d1e445f03aa6 100644 --- a/drivers/iommu/intel/svm.c +++ b/drivers/iommu/intel/svm.c @@ -351,11 +351,9 @@ static struct iommu_sva *intel_svm_bind_mm(struct intel_iommu *iommu, sdev->did = FLPT_DEFAULT_DID; sdev->sid = PCI_DEVID(info->bus, info->devfn); sdev->users = 1; - sdev->pasid = svm->pasid; sdev->sva.dev = dev; init_rcu_head(&sdev->rcu); if (info->ats_enabled) { - sdev->dev_iotlb = 1; sdev->qdep = info->ats_qdep; if (sdev->qdep >= QI_DEV_EIOTLB_MAX_INVS) sdev->qdep = 0; |