Skip to content

Commit

Permalink
iommu: Add empty stub for iommu_group_get_by_id()
Browse files Browse the repository at this point in the history
Almost every function in include/linux/iommu.h has an empty stub
but the iommu_group_get_by_id() did not get one by mistake.

This adds an empty stub for iommu_group_get_by_id() for IOMMU_API
disabled config.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
  • Loading branch information
Alexey Kardashevskiy authored and Joerg Roedel committed Dec 30, 2013
1 parent 802eee9 commit b62dfd2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/iommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ static inline struct iommu_domain *iommu_domain_alloc(struct bus_type *bus)
return NULL;
}

static inline struct iommu_group *iommu_group_get_by_id(int id)
{
return NULL;
}

static inline void iommu_domain_free(struct iommu_domain *domain)
{
}
Expand Down

0 comments on commit b62dfd2

Please sign in to comment.