x86: move bad_dma_address
authorGlauber Costa <gcosta@redhat.com>
Tue, 8 Apr 2008 16:21:00 +0000 (13:21 -0300)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:58 +0000 (19:19 +0200)
It goes to pci-dma.c, and is removed from the arch-specific files.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/pci-dma.c
arch/x86/kernel/pci-dma_32.c
arch/x86/kernel/pci-dma_64.c

index 967dfcfa2ad2b3e8747c2ac5c77e8462de9fa569..00527e74e49cb6b4ebf1157a663c14c8d1f7b892 100644 (file)
@@ -35,6 +35,8 @@ int iommu_detected __read_mostly = 0;
 int iommu_bio_merge __read_mostly = 0;
 EXPORT_SYMBOL(iommu_bio_merge);
 
+dma_addr_t bad_dma_address __read_mostly = 0;
+EXPORT_SYMBOL(bad_dma_address);
 
 int dma_set_mask(struct device *dev, u64 mask)
 {
index 78c7640252a4ecdb87f0bf79e3c4097e8e857a80..9199bccb9214c959196128b19de6495594cd7814 100644 (file)
 #include <linux/module.h>
 #include <asm/io.h>
 
-/* For i386, we make it point to the NULL address */
-dma_addr_t bad_dma_address __read_mostly = 0x0;
-EXPORT_SYMBOL(bad_dma_address);
-
 static int dma_alloc_from_coherent_mem(struct device *dev, ssize_t size,
                                       dma_addr_t *dma_handle, void **ret)
 {
index 6eacd58e451bba9ce6a1bc29b8dcc76574412223..5f03e4174210dcd4fcd27c0d07b0efbf9d1e03fa 100644 (file)
@@ -14,8 +14,6 @@
 #include <asm/gart.h>
 #include <asm/calgary.h>
 
-dma_addr_t bad_dma_address __read_mostly;
-EXPORT_SYMBOL(bad_dma_address);
 
 /* Dummy device used for NULL arguments (normally ISA). Better would
    be probably a smaller DMA mask, but this is bug-to-bug compatible