[PATCH] iommu: Add empty stub for iommu_group_get_by_id()

Subsystems: iommu subsystem, the rest

STALE4636d

3 messages, 2 authors, 2013-12-30 · open the first message on its own page

[PATCH] iommu: Add empty stub for iommu_group_get_by_id()

From: Alexey Kardashevskiy <hidden>
Date: 2013-11-21 06:41:28

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 <redacted>
---
 include/linux/iommu.h | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index 7ea319e..3c7903d 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -245,6 +245,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)
 {
 }
-- 
1.8.4.rc4

Re: [PATCH] iommu: Add empty stub for iommu_group_get_by_id()

From: Alexey Kardashevskiy <hidden>
Date: 2013-12-24 05:10:42

On 11/21/2013 05:41 PM, Alexey Kardashevskiy wrote:
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.
Ping?

quoted hunk
Signed-off-by: Alexey Kardashevskiy <redacted>
---
 include/linux/iommu.h | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index 7ea319e..3c7903d 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -245,6 +245,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)
 {
 }

-- 
Alexey

Re: [PATCH] iommu: Add empty stub for iommu_group_get_by_id()

From: Joerg Roedel <joro@8bytes.org>
Date: 2013-12-30 14:18:22

On Thu, Nov 21, 2013 at 05:41:14PM +1100, Alexey Kardashevskiy wrote:
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 <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help