diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-06-27 04:48:16 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-27 04:52:34 -0400 |
commit | 92af4e29020ff096178a00605b3662b3b39d4aa9 (patch) | |
tree | d471929f3badeba833d3b2579555a9feff166bb7 | |
parent | 24d2ba0a8a5816eb8322836271fbcb045d915dfd (diff) |
x86, AMD IOMMU, build fix #2
fix:
arch/x86/kernel/amd_iommu.c: In function ‘amd_iommu_init_dma_ops':
arch/x86/kernel/amd_iommu.c:940: error: lvalue required as left operand of assignment
arch/x86/kernel/amd_iommu.c:941: error: lvalue required as left operand of assignment
due to !CONFIG_GART_IOMMU.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/amd_iommu_init.c | 2 | ||||
-rw-r--r-- | include/asm-x86/gart.h | 5 |
3 files changed, 7 insertions, 2 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 134dea103247..a1b38561d347 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c | |||
@@ -937,8 +937,10 @@ int __init amd_iommu_init_dma_ops(void) | |||
937 | iommu_detected = 1; | 937 | iommu_detected = 1; |
938 | force_iommu = 1; | 938 | force_iommu = 1; |
939 | bad_dma_address = 0; | 939 | bad_dma_address = 0; |
940 | #ifdef CONFIG_GART_IOMMU | ||
940 | gart_iommu_aperture_disabled = 1; | 941 | gart_iommu_aperture_disabled = 1; |
941 | gart_iommu_aperture = 0; | 942 | gart_iommu_aperture = 0; |
943 | #endif | ||
942 | 944 | ||
943 | dma_ops = &amd_iommu_dma_ops; | 945 | dma_ops = &amd_iommu_dma_ops; |
944 | 946 | ||
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c index d1aa2344cd90..6ab8128db1cc 100644 --- a/arch/x86/kernel/amd_iommu_init.c +++ b/arch/x86/kernel/amd_iommu_init.c | |||
@@ -801,8 +801,10 @@ void __init amd_iommu_detect(void) | |||
801 | 801 | ||
802 | if (acpi_table_parse("IVRS", early_amd_iommu_detect) == 0) { | 802 | if (acpi_table_parse("IVRS", early_amd_iommu_detect) == 0) { |
803 | iommu_detected = 1; | 803 | iommu_detected = 1; |
804 | #ifdef CONFIG_GART_IOMMU | ||
804 | gart_iommu_aperture_disabled = 1; | 805 | gart_iommu_aperture_disabled = 1; |
805 | gart_iommu_aperture = 0; | 806 | gart_iommu_aperture = 0; |
807 | #endif | ||
806 | } | 808 | } |
807 | } | 809 | } |
808 | 810 | ||
diff --git a/include/asm-x86/gart.h b/include/asm-x86/gart.h index 90958ed993fa..ec5785c6e2fd 100644 --- a/include/asm-x86/gart.h +++ b/include/asm-x86/gart.h | |||
@@ -18,8 +18,9 @@ extern int gart_iommu_aperture_allowed; | |||
18 | extern int gart_iommu_aperture_disabled; | 18 | extern int gart_iommu_aperture_disabled; |
19 | extern int fix_aperture; | 19 | extern int fix_aperture; |
20 | #else | 20 | #else |
21 | #define gart_iommu_aperture 0 | 21 | #define gart_iommu_aperture 0 |
22 | #define gart_iommu_aperture_allowed 0 | 22 | #define gart_iommu_aperture_allowed 0 |
23 | #define gart_iommu_aperture_disabled 1 | ||
23 | 24 | ||
24 | static inline void early_gart_iommu_check(void) | 25 | static inline void early_gart_iommu_check(void) |
25 | { | 26 | { |