[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20080423095244.GN28933@cs181133002.pp.htv.fi>
Date: Wed, 23 Apr 2008 12:52:44 +0300
From: Adrian Bunk <bunk@...nel.org>
To: Glauber Costa <gcosta@...hat.com>, tglx@...utronix.de,
mingo@...hat.com, hpa@...or.com
Cc: linux-kernel@...r.kernel.org
Subject: [2.6 patch] x86/kernel/pci-dma.c cleanups
This patch contains the following cleanups:
- make the following needlessly global code static:
- forbid_dac
- iommu_sac_force
- dma_alloc_pages()
- remove the following unused export:
- iommu_bio_merge
Signed-off-by: Adrian Bunk <bunk@...nel.org>
---
arch/x86/kernel/pci-dma.c | 8 +++-----
include/asm-x86/dma-mapping.h | 1 -
2 files changed, 3 insertions(+), 6 deletions(-)
41c6aac19822b9875abadb807c41ca1e95031bc7 diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c
index 388b113..d4b1588 100644
--- a/arch/x86/kernel/pci-dma.c
+++ b/arch/x86/kernel/pci-dma.c
@@ -8,13 +8,12 @@
#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);
-int iommu_sac_force __read_mostly = 0;
+static int iommu_sac_force __read_mostly = 0;
#ifdef CONFIG_IOMMU_DEBUG
int panic_on_overflow __read_mostly = 1;
@@ -33,7 +32,6 @@ int iommu_detected __read_mostly = 0;
/* This tells the BIO block layer to assume merging. Default to off
because we cannot guarantee merging later. */
int iommu_bio_merge __read_mostly = 0;
-EXPORT_SYMBOL(iommu_bio_merge);
dma_addr_t bad_dma_address __read_mostly = 0;
EXPORT_SYMBOL(bad_dma_address);
@@ -357,7 +355,7 @@ int dma_supported(struct device *dev, u64 mask)
EXPORT_SYMBOL(dma_supported);
/* Allocate DMA memory on node near device */
-noinline struct page *
+static noinline struct page *
dma_alloc_pages(struct device *dev, gfp_t gfp, unsigned order)
{
int node;
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h
index a1a4dc7..c2ddd3d 100644
--- a/include/asm-x86/dma-mapping.h
+++ b/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 {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists