浏览代码

[PATCH] x86_64: Replace swiotlb extern with include

Minor victory on the continuous quest against all stray extern.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Andi Kleen 20 年之前
父节点
当前提交
5917089104
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      arch/x86_64/mm/init.c

+ 1 - 4
arch/x86_64/mm/init.c

@@ -22,6 +22,7 @@
 #include <linux/pagemap.h>
 #include <linux/pagemap.h>
 #include <linux/bootmem.h>
 #include <linux/bootmem.h>
 #include <linux/proc_fs.h>
 #include <linux/proc_fs.h>
+#include <linux/pci.h>
 
 
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/system.h>
 #include <asm/system.h>
@@ -42,10 +43,6 @@
 #define Dprintk(x...)
 #define Dprintk(x...)
 #endif
 #endif
 
 
-#ifdef CONFIG_GART_IOMMU
-extern int swiotlb;
-#endif
-
 static unsigned long dma_reserve __initdata;
 static unsigned long dma_reserve __initdata;
 
 
 DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
 DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);