diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2011-08-23 20:05:22 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-09-21 04:21:57 -0400 |
commit | f5d1b97bcdd8ac195f48c645bffcb88bcea533e4 (patch) | |
tree | 4c93c43132bbed990fa6ae2c6f4a5422f8f85f19 /include/linux/dma_remapping.h | |
parent | 80990c5ba6de9040d2df7c06e3c222c61004085d (diff) |
iommu: Cleanup ifdefs in detect_intel_iommu()
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: yinghai@kernel.org
Cc: youquan.song@intel.com
Cc: joerg.roedel@amd.com
Cc: tony.luck@intel.com
Cc: dwmw2@infradead.org
Link: http://lkml.kernel.org/r/20110824001456.386003047@sbsiddha-desk.sc.intel.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/dma_remapping.h')
-rw-r--r-- | include/linux/dma_remapping.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/dma_remapping.h b/include/linux/dma_remapping.h index aaa12cb8227a..b98b61b3743e 100644 --- a/include/linux/dma_remapping.h +++ b/include/linux/dma_remapping.h | |||
@@ -30,6 +30,7 @@ struct root_entry; | |||
30 | extern void free_dmar_iommu(struct intel_iommu *iommu); | 30 | extern void free_dmar_iommu(struct intel_iommu *iommu); |
31 | extern int iommu_calculate_agaw(struct intel_iommu *iommu); | 31 | extern int iommu_calculate_agaw(struct intel_iommu *iommu); |
32 | extern int iommu_calculate_max_sagaw(struct intel_iommu *iommu); | 32 | extern int iommu_calculate_max_sagaw(struct intel_iommu *iommu); |
33 | extern int dmar_disabled; | ||
33 | #else | 34 | #else |
34 | static inline int iommu_calculate_agaw(struct intel_iommu *iommu) | 35 | static inline int iommu_calculate_agaw(struct intel_iommu *iommu) |
35 | { | 36 | { |
@@ -42,8 +43,8 @@ static inline int iommu_calculate_max_sagaw(struct intel_iommu *iommu) | |||
42 | static inline void free_dmar_iommu(struct intel_iommu *iommu) | 43 | static inline void free_dmar_iommu(struct intel_iommu *iommu) |
43 | { | 44 | { |
44 | } | 45 | } |
46 | #define dmar_disabled (1) | ||
45 | #endif | 47 | #endif |
46 | 48 | ||
47 | extern int dmar_disabled; | ||
48 | 49 | ||
49 | #endif | 50 | #endif |