aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/pci-gart.c
diff options
context:
space:
mode:
authorYinghai Lu <Yinghai.Lu@Sun.COM>2007-07-21 11:11:23 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-21 21:37:13 -0400
commit1048fa52810a5bad542cd4929a702af5e241fa81 (patch)
tree1eaf61cf64f6f23f3023246e22b2948a5bae809a /arch/x86_64/kernel/pci-gart.c
parente199ece4472cdcc73f329813d67dc4280424cd2d (diff)
x86_64: change _map_single to static in pci_gart.c etc
This function is called via dma_ops->.., so change it to static Signed-off-by: Yinghai Lu <yinghai.lu@sun.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86_64/kernel/pci-gart.c')
-rw-r--r--arch/x86_64/kernel/pci-gart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/kernel/pci-gart.c b/arch/x86_64/kernel/pci-gart.c
index ae091cdc1a4d..e587b65e754f 100644
--- a/arch/x86_64/kernel/pci-gart.c
+++ b/arch/x86_64/kernel/pci-gart.c
@@ -235,7 +235,7 @@ static dma_addr_t gart_map_simple(struct device *dev, char *buf,
235} 235}
236 236
237/* Map a single area into the IOMMU */ 237/* Map a single area into the IOMMU */
238dma_addr_t gart_map_single(struct device *dev, void *addr, size_t size, int dir) 238static dma_addr_t gart_map_single(struct device *dev, void *addr, size_t size, int dir)
239{ 239{
240 unsigned long phys_mem, bus; 240 unsigned long phys_mem, bus;
241 241
@@ -253,7 +253,7 @@ dma_addr_t gart_map_single(struct device *dev, void *addr, size_t size, int dir)
253/* 253/*
254 * Free a DMA mapping. 254 * Free a DMA mapping.
255 */ 255 */
256void gart_unmap_single(struct device *dev, dma_addr_t dma_addr, 256static void gart_unmap_single(struct device *dev, dma_addr_t dma_addr,
257 size_t size, int direction) 257 size_t size, int direction)
258{ 258{
259 unsigned long iommu_page; 259 unsigned long iommu_page;
@@ -275,7 +275,7 @@ void gart_unmap_single(struct device *dev, dma_addr_t dma_addr,
275/* 275/*
276 * Wrapper for pci_unmap_single working with scatterlists. 276 * Wrapper for pci_unmap_single working with scatterlists.
277 */ 277 */
278void gart_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, int dir) 278static void gart_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, int dir)
279{ 279{
280 int i; 280 int i;
281 281