diff options
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 2 | ||||
-rw-r--r-- | drivers/base/iommu.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 008e522b9536..c5962fe3796f 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c | |||
@@ -24,9 +24,7 @@ | |||
24 | #include <linux/scatterlist.h> | 24 | #include <linux/scatterlist.h> |
25 | #include <linux/dma-mapping.h> | 25 | #include <linux/dma-mapping.h> |
26 | #include <linux/iommu-helper.h> | 26 | #include <linux/iommu-helper.h> |
27 | #ifdef CONFIG_IOMMU_API | ||
28 | #include <linux/iommu.h> | 27 | #include <linux/iommu.h> |
29 | #endif | ||
30 | #include <asm/proto.h> | 28 | #include <asm/proto.h> |
31 | #include <asm/iommu.h> | 29 | #include <asm/iommu.h> |
32 | #include <asm/gart.h> | 30 | #include <asm/gart.h> |
diff --git a/drivers/base/iommu.c b/drivers/base/iommu.c index 5e039d4f877c..c2d1eed90376 100644 --- a/drivers/base/iommu.c +++ b/drivers/base/iommu.c | |||
@@ -31,7 +31,7 @@ void register_iommu(struct iommu_ops *ops) | |||
31 | iommu_ops = ops; | 31 | iommu_ops = ops; |
32 | } | 32 | } |
33 | 33 | ||
34 | bool iommu_found() | 34 | bool iommu_found(void) |
35 | { | 35 | { |
36 | return iommu_ops != NULL; | 36 | return iommu_ops != NULL; |
37 | } | 37 | } |