Skip to content

Commit 792ea7b

Browse files
jgunthorpejoergroedel
authored andcommitted
iommu: Remove ops->pgsize_bitmap
No driver uses it now, remove the core code. Reviewed-by: Lu Baolu <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Tested-by: Nicolin Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 53b76df commit 792ea7b

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

drivers/iommu/iommu.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,13 +2002,6 @@ static void iommu_domain_init(struct iommu_domain *domain, unsigned int type,
20022002
domain->owner = ops;
20032003
if (!domain->ops)
20042004
domain->ops = ops->default_domain_ops;
2005-
2006-
/*
2007-
* If not already set, assume all sizes by default; the driver
2008-
* may override this later
2009-
*/
2010-
if (!domain->pgsize_bitmap)
2011-
domain->pgsize_bitmap = ops->pgsize_bitmap;
20122005
}
20132006

20142007
static struct iommu_domain *

include/linux/iommu.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,6 @@ iommu_copy_struct_from_full_user_array(void *kdst, size_t kdst_entry_size,
604604
* It is required to call iommufd_viommu_alloc() helper for
605605
* a bundled allocation of the core and the driver structures,
606606
* using the given @ictx pointer.
607-
* @pgsize_bitmap: bitmap of all possible supported page sizes
608607
* @owner: Driver module providing these ops
609608
* @identity_domain: An always available, always attachable identity
610609
* translation.
@@ -659,7 +658,6 @@ struct iommu_ops {
659658
struct iommufd_ctx *ictx, unsigned int viommu_type);
660659

661660
const struct iommu_domain_ops *default_domain_ops;
662-
unsigned long pgsize_bitmap;
663661
struct module *owner;
664662
struct iommu_domain *identity_domain;
665663
struct iommu_domain *blocked_domain;

0 commit comments

Comments
 (0)