Skip to content

Commit ade4bec

Browse files
ssuthiku-amdjoergroedel
authored andcommitted
iommu/amd: Remove unused amd_io_pgtable.pt_root variable
It has been no longer used since the commit 6eedb59 ("iommu/amd: Remove amd_iommu_domain_get_pgtable"). Signed-off-by: Suravee Suthikulpanit <[email protected]> Signed-off-by: Vasant Hegde <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Jerry Snitselaar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 6465e26 commit ade4bec

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

drivers/iommu/amd/amd_iommu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ static inline void *iommu_phys_to_virt(unsigned long paddr)
105105
static inline
106106
void amd_iommu_domain_set_pt_root(struct protection_domain *domain, u64 root)
107107
{
108-
atomic64_set(&domain->iop.pt_root, root);
109108
domain->iop.root = (u64 *)(root & PAGE_MASK);
110109
domain->iop.mode = root & 7; /* lowest 3 bits encode pgtable mode */
111110
}

drivers/iommu/amd/amd_iommu_types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,6 @@ struct amd_io_pgtable {
544544
struct io_pgtable iop;
545545
int mode;
546546
u64 *root;
547-
atomic64_t pt_root; /* pgtable root and pgtable mode */
548547
u64 *pgd; /* v2 pgtable pgd pointer */
549548
};
550549

0 commit comments

Comments
 (0)