iommu: Add empty stub for iommu_group_get_by_id()
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 21 Nov 2013 06:41:14 +0000 (17:41 +1100)
committerJoerg Roedel <joro@8bytes.org>
Mon, 30 Dec 2013 14:17:31 +0000 (15:17 +0100)
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>
include/linux/iommu.h

index a444c790fa7235e2bc7247313804a5062d0a4db8..01ed7345f5083371b197b00e6ad8f91ac446822b 100644 (file)
@@ -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)
 {
 }