Skip to contentSkip to conversation

x86: reduce forbid_dac's visibility

PATCH In review Jan Beulich 2 participants 2 messages Jul 18, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: reduce forbid_dac's visibility

It's not used anywhere outside its declaring file.

---
 arch/x86/kernel/pci-dma.c     |    3 +--
 include/asm-x86/dma-mapping.h |    1 -
 2 files changed, 1 insertion(+), 3 deletions(-)
arch/x86/kernel/pci-dma.c +1 -2
@@ -8,8 +8,7 @@
 #include <asm/gart.h>
 #include <asm/calgary.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);
include/asm-x86/dma-mapping.h +0 -1
@@ -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 {
#1 lore raw
Quoted 8 lines · Jan Beulich

It's not used anywhere outside its declaring file.

---
 arch/x86/kernel/pci-dma.c     |    3 +--
 include/asm-x86/dma-mapping.h |    1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

Manually applied to x86/cleanups, thanks.

-hpa