From fcf92ef9b6d0f71aec490e00220f5b2157eaa34a Mon Sep 17 00:00:00 2001 From: Fenghua Yu Date: Thu, 30 Apr 2009 17:57:11 -0700 Subject: [PATCH] --- yaml --- r: 153849 b: refs/heads/master c: aed5d5f4c5ea5da01a774e42cff08c4b4fa59072 h: refs/heads/master i: 153847: f8eef52b7aec82732615da7b1ff060f328308c2e v: v3 --- [refs] | 2 +- trunk/arch/ia64/kernel/pci-dma.c | 2 ++ trunk/arch/x86/kernel/pci-dma.c | 4 ++-- trunk/drivers/pci/intel-iommu.c | 1 - 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 09c05ade3164..8e2b967b3d69 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4ed0d3e6c64cfd9ba4ceb2099b10d1cf8ece4320 +refs/heads/master: aed5d5f4c5ea5da01a774e42cff08c4b4fa59072 diff --git a/trunk/arch/ia64/kernel/pci-dma.c b/trunk/arch/ia64/kernel/pci-dma.c index eb987386f691..ecdde25d0d18 100644 --- a/trunk/arch/ia64/kernel/pci-dma.c +++ b/trunk/arch/ia64/kernel/pci-dma.c @@ -32,6 +32,8 @@ int force_iommu __read_mostly = 1; int force_iommu __read_mostly; #endif +int iommu_pass_through; + /* Dummy device used for NULL arguments (normally ISA). Better would be probably a smaller DMA mask, but this is bug-to-bug compatible to i386. */ diff --git a/trunk/arch/x86/kernel/pci-dma.c b/trunk/arch/x86/kernel/pci-dma.c index 8cad0d854242..049005e82178 100644 --- a/trunk/arch/x86/kernel/pci-dma.c +++ b/trunk/arch/x86/kernel/pci-dma.c @@ -32,6 +32,8 @@ int no_iommu __read_mostly; /* Set this to 1 if there is a HW IOMMU in the system */ int iommu_detected __read_mostly = 0; +int iommu_pass_through; + dma_addr_t bad_dma_address __read_mostly = 0; EXPORT_SYMBOL(bad_dma_address); @@ -160,8 +162,6 @@ void *dma_generic_alloc_coherent(struct device *dev, size_t size, return page_address(page); } -extern int iommu_pass_through; - /* * See for the iommu kernel parameter * documentation. diff --git a/trunk/drivers/pci/intel-iommu.c b/trunk/drivers/pci/intel-iommu.c index 13121821db7f..d3edd6aa82ce 100644 --- a/trunk/drivers/pci/intel-iommu.c +++ b/trunk/drivers/pci/intel-iommu.c @@ -288,7 +288,6 @@ int dmar_disabled = 1; static int __initdata dmar_map_gfx = 1; static int dmar_forcedac; static int intel_iommu_strict; -int iommu_pass_through; #define DUMMY_DEVICE_DOMAIN_INFO ((struct device_domain_info *)(-1)) static DEFINE_SPINLOCK(device_domain_lock);