提交 1048fa52 编写于 作者: Y Yinghai Lu 提交者: Linus Torvalds

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: NYinghai Lu <yinghai.lu@sun.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NAndi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 e199ece4
...@@ -235,7 +235,7 @@ static dma_addr_t gart_map_simple(struct device *dev, char *buf, ...@@ -235,7 +235,7 @@ static dma_addr_t gart_map_simple(struct device *dev, char *buf,
} }
/* Map a single area into the IOMMU */ /* Map a single area into the IOMMU */
dma_addr_t gart_map_single(struct device *dev, void *addr, size_t size, int dir) static dma_addr_t gart_map_single(struct device *dev, void *addr, size_t size, int dir)
{ {
unsigned long phys_mem, bus; unsigned long phys_mem, bus;
...@@ -253,7 +253,7 @@ dma_addr_t gart_map_single(struct device *dev, void *addr, size_t size, int dir) ...@@ -253,7 +253,7 @@ dma_addr_t gart_map_single(struct device *dev, void *addr, size_t size, int dir)
/* /*
* Free a DMA mapping. * Free a DMA mapping.
*/ */
void gart_unmap_single(struct device *dev, dma_addr_t dma_addr, static void gart_unmap_single(struct device *dev, dma_addr_t dma_addr,
size_t size, int direction) size_t size, int direction)
{ {
unsigned long iommu_page; unsigned long iommu_page;
...@@ -275,7 +275,7 @@ void gart_unmap_single(struct device *dev, dma_addr_t dma_addr, ...@@ -275,7 +275,7 @@ void gart_unmap_single(struct device *dev, dma_addr_t dma_addr,
/* /*
* Wrapper for pci_unmap_single working with scatterlists. * Wrapper for pci_unmap_single working with scatterlists.
*/ */
void gart_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, int dir) static void gart_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, int dir)
{ {
int i; int i;
......
...@@ -34,7 +34,7 @@ nommu_map_single(struct device *hwdev, void *ptr, size_t size, ...@@ -34,7 +34,7 @@ nommu_map_single(struct device *hwdev, void *ptr, size_t size,
return bus; return bus;
} }
void nommu_unmap_single(struct device *dev, dma_addr_t addr,size_t size, static void nommu_unmap_single(struct device *dev, dma_addr_t addr,size_t size,
int direction) int direction)
{ {
} }
...@@ -54,7 +54,7 @@ void nommu_unmap_single(struct device *dev, dma_addr_t addr,size_t size, ...@@ -54,7 +54,7 @@ void nommu_unmap_single(struct device *dev, dma_addr_t addr,size_t size,
* Device ownership issues as mentioned above for pci_map_single are * Device ownership issues as mentioned above for pci_map_single are
* the same here. * the same here.
*/ */
int nommu_map_sg(struct device *hwdev, struct scatterlist *sg, static int nommu_map_sg(struct device *hwdev, struct scatterlist *sg,
int nents, int direction) int nents, int direction)
{ {
int i; int i;
...@@ -74,7 +74,7 @@ int nommu_map_sg(struct device *hwdev, struct scatterlist *sg, ...@@ -74,7 +74,7 @@ int nommu_map_sg(struct device *hwdev, struct scatterlist *sg,
* Again, cpu read rules concerning calls here are the same as for * Again, cpu read rules concerning calls here are the same as for
* pci_unmap_single() above. * pci_unmap_single() above.
*/ */
void nommu_unmap_sg(struct device *dev, struct scatterlist *sg, static void nommu_unmap_sg(struct device *dev, struct scatterlist *sg,
int nents, int dir) int nents, int dir)
{ {
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册