From 251f3750d5409fd49483bda4c44a5810c650cdef Mon Sep 17 00:00:00 2001 From: Joerg Roedel Date: Tue, 6 Sep 2011 16:48:40 +0200 Subject: [PATCH] --- yaml --- r: 271578 b: refs/heads/master c: 39d4ebb95925046863dc0ef2698dfcf2c1f1dcbe h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/iommu.h | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 8a969fcd727f..45856f6765b2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 51acc0bcfc91987ed38195918e0b40ff05197585 +refs/heads/master: 39d4ebb95925046863dc0ef2698dfcf2c1f1dcbe diff --git a/trunk/include/linux/iommu.h b/trunk/include/linux/iommu.h index 9940319d6f9d..6470cd87b4ea 100644 --- a/trunk/include/linux/iommu.h +++ b/trunk/include/linux/iommu.h @@ -34,6 +34,8 @@ struct iommu_domain { #define IOMMU_CAP_CACHE_COHERENCY 0x1 #define IOMMU_CAP_INTR_REMAP 0x2 /* isolates device intrs */ +#ifdef CONFIG_IOMMU_API + struct iommu_ops { int (*domain_init)(struct iommu_domain *domain); void (*domain_destroy)(struct iommu_domain *domain); @@ -49,8 +51,6 @@ struct iommu_ops { unsigned long cap); }; -#ifdef CONFIG_IOMMU_API - extern void register_iommu(struct iommu_ops *ops); extern bool iommu_found(void); extern struct iommu_domain *iommu_domain_alloc(void); @@ -70,9 +70,7 @@ extern int iommu_domain_has_cap(struct iommu_domain *domain, #else /* CONFIG_IOMMU_API */ -static inline void register_iommu(struct iommu_ops *ops) -{ -} +struct iommu_ops {}; static inline bool iommu_found(void) {