[PATCH] x86: reduce forbid_dac's visibility

From: Jan Beulich
Date: Fri Jul 18 2008 - 08:44:02 EST


It's not used anywhere outside its declaring file.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

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

--- linux-2.6.26/arch/x86/kernel/pci-dma.c 2008-07-13 23:51:29.000000000 +0200
+++ 2.6.26-x86-forbid-dac/arch/x86/kernel/pci-dma.c 2008-07-15 14:51:28.000000000 +0200
@@ -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);
--- linux-2.6.26/include/asm-x86/dma-mapping.h 2008-07-13 23:51:29.000000000 +0200
+++ 2.6.26-x86-forbid-dac/include/asm-x86/dma-mapping.h 2008-07-17 10:29:09.000000000 +0200
@@ -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 {



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/