File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -882,35 +882,6 @@ struct iommu_group *iommu_group_alloc(void)
882882}
883883EXPORT_SYMBOL_GPL (iommu_group_alloc );
884884
885- struct iommu_group * iommu_group_get_by_id (int id )
886- {
887- struct kobject * group_kobj ;
888- struct iommu_group * group ;
889- const char * name ;
890-
891- if (!iommu_group_kset )
892- return NULL ;
893-
894- name = kasprintf (GFP_KERNEL , "%d" , id );
895- if (!name )
896- return NULL ;
897-
898- group_kobj = kset_find_obj (iommu_group_kset , name );
899- kfree (name );
900-
901- if (!group_kobj )
902- return NULL ;
903-
904- group = container_of (group_kobj , struct iommu_group , kobj );
905- BUG_ON (group -> id != id );
906-
907- kobject_get (group -> devices_kobj );
908- kobject_put (& group -> kobj );
909-
910- return group ;
911- }
912- EXPORT_SYMBOL_GPL (iommu_group_get_by_id );
913-
914885/**
915886 * iommu_group_get_iommudata - retrieve iommu_data registered for a group
916887 * @group: the group
Original file line number Diff line number Diff line change @@ -460,7 +460,6 @@ extern bool iommu_present(struct bus_type *bus);
460460extern bool device_iommu_capable (struct device * dev , enum iommu_cap cap );
461461extern bool iommu_group_has_isolated_msi (struct iommu_group * group );
462462extern struct iommu_domain * iommu_domain_alloc (struct bus_type * bus );
463- extern struct iommu_group * iommu_group_get_by_id (int id );
464463extern void iommu_domain_free (struct iommu_domain * domain );
465464extern int iommu_attach_device (struct iommu_domain * domain ,
466465 struct device * dev );
@@ -746,11 +745,6 @@ static inline struct iommu_domain *iommu_domain_alloc(struct bus_type *bus)
746745 return NULL ;
747746}
748747
749- static inline struct iommu_group * iommu_group_get_by_id (int id )
750- {
751- return NULL ;
752- }
753-
754748static inline void iommu_domain_free (struct iommu_domain * domain )
755749{
756750}
You can’t perform that action at this time.
0 commit comments