]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Fix x86-64 compilation without iommu for 2.6.6rc3
authorAndi Kleen <ak@suse.de>
Sun, 9 May 2004 11:25:35 +0000 (04:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 9 May 2004 11:25:35 +0000 (04:25 -0700)
Various people hit this in earlier kernels. The x86-64 kernel did not compile
without CONFIG_IOMMU_GART in various configurations. Just add the missing symbol
and export it. Also export iommu_merge while I am at it.

arch/x86_64/kernel/pci-gart.c
arch/x86_64/kernel/pci-nommu.c

index 292b675293e5d7fa3607507121b9ef8d16bbe963..8eb20a7dc2996973a9e7723f13ec353374535599 100644 (file)
@@ -618,6 +618,7 @@ EXPORT_SYMBOL(pci_dma_supported);
 EXPORT_SYMBOL(no_iommu);
 EXPORT_SYMBOL(force_iommu); 
 EXPORT_SYMBOL(bad_dma_address);
+EXPORT_SYMBOL(iommu_merge);
 
 static __init unsigned long check_iommu_size(unsigned long aper, u64 aper_size)
 { 
index 278c626badd80e7cd24c903f6048c4cc2a066bee..00fb2645c510a32a4ef4c717765b750002124ac0 100644 (file)
@@ -5,6 +5,10 @@
 #include <asm/proto.h>
 
 int iommu_merge = 0;
+EXPORT_SYMBOL(iommu_merge);
+
+dma_addr_t bad_dma_address;
+EXPORT_SYMBOL(bad_dma_address);
 
 /* 
  * Dummy IO MMU functions