浏览代码

x86: reduce forbid_dac's visibility

It's not used anywhere outside its declaring file.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Jan Beulich 17 年之前
父节点
当前提交
08e1a13e7d
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 1 2
      arch/x86/kernel/pci-dma.c
  2. 0 1
      include/asm-x86/dma-mapping.h

+ 1 - 2
arch/x86/kernel/pci-dma.c

@@ -9,8 +9,7 @@
 #include <asm/calgary.h>
 #include <asm/amd_iommu.h>
 
-int forbid_dac __read_mostly;
-EXPORT_SYMBOL(forbid_dac);
+static int forbid_dac __read_mostly;
 
 const struct dma_mapping_ops *dma_ops;
 EXPORT_SYMBOL(dma_ops);

+ 0 - 1
include/asm-x86/dma-mapping.h

@@ -14,7 +14,6 @@ extern dma_addr_t bad_dma_address;
 extern int iommu_merge;
 extern struct device fallback_dev;
 extern int panic_on_overflow;
-extern int forbid_dac;
 extern int force_iommu;
 
 struct dma_mapping_ops {