diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-08-13 13:26:11 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-08-23 10:18:56 -0400 |
commit | a8752fd9a4106c5efe324109df133692d5fcbffc (patch) | |
tree | c9af6c5dd875b45fba787866cf861d93830763bb | |
parent | 1a1d43318aeb74d679372c0b65029957be274529 (diff) |
xen/swiotlb: Remove functions not needed anymore.
Sparse warns us off:
drivers/xen/swiotlb-xen.c:506:1: warning: symbol 'xen_swiotlb_map_sg' was not declared. Should it be static?
drivers/xen/swiotlb-xen.c:534:1: warning: symbol 'xen_swiotlb_unmap_sg' was not declared. Should it be static?
and it looks like we do not need this function at all.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
-rw-r--r-- | drivers/xen/swiotlb-xen.c | 16 | ||||
-rw-r--r-- | include/xen/swiotlb-xen.h | 9 |
2 files changed, 0 insertions, 25 deletions
diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c index a52f3ae05d94..29e8cd48180f 100644 --- a/drivers/xen/swiotlb-xen.c +++ b/drivers/xen/swiotlb-xen.c | |||
@@ -466,14 +466,6 @@ xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, | |||
466 | } | 466 | } |
467 | EXPORT_SYMBOL_GPL(xen_swiotlb_map_sg_attrs); | 467 | EXPORT_SYMBOL_GPL(xen_swiotlb_map_sg_attrs); |
468 | 468 | ||
469 | int | ||
470 | xen_swiotlb_map_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, | ||
471 | enum dma_data_direction dir) | ||
472 | { | ||
473 | return xen_swiotlb_map_sg_attrs(hwdev, sgl, nelems, dir, NULL); | ||
474 | } | ||
475 | EXPORT_SYMBOL_GPL(xen_swiotlb_map_sg); | ||
476 | |||
477 | /* | 469 | /* |
478 | * Unmap a set of streaming mode DMA translations. Again, cpu read rules | 470 | * Unmap a set of streaming mode DMA translations. Again, cpu read rules |
479 | * concerning calls here are the same as for swiotlb_unmap_page() above. | 471 | * concerning calls here are the same as for swiotlb_unmap_page() above. |
@@ -494,14 +486,6 @@ xen_swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl, | |||
494 | } | 486 | } |
495 | EXPORT_SYMBOL_GPL(xen_swiotlb_unmap_sg_attrs); | 487 | EXPORT_SYMBOL_GPL(xen_swiotlb_unmap_sg_attrs); |
496 | 488 | ||
497 | void | ||
498 | xen_swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, | ||
499 | enum dma_data_direction dir) | ||
500 | { | ||
501 | return xen_swiotlb_unmap_sg_attrs(hwdev, sgl, nelems, dir, NULL); | ||
502 | } | ||
503 | EXPORT_SYMBOL_GPL(xen_swiotlb_unmap_sg); | ||
504 | |||
505 | /* | 489 | /* |
506 | * Make physical memory consistent for a set of streaming mode DMA translations | 490 | * Make physical memory consistent for a set of streaming mode DMA translations |
507 | * after a transfer. | 491 | * after a transfer. |
diff --git a/include/xen/swiotlb-xen.h b/include/xen/swiotlb-xen.h index 4f4d449f00f6..c050b6b9de38 100644 --- a/include/xen/swiotlb-xen.h +++ b/include/xen/swiotlb-xen.h | |||
@@ -23,15 +23,6 @@ extern dma_addr_t xen_swiotlb_map_page(struct device *dev, struct page *page, | |||
23 | extern void xen_swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr, | 23 | extern void xen_swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr, |
24 | size_t size, enum dma_data_direction dir, | 24 | size_t size, enum dma_data_direction dir, |
25 | struct dma_attrs *attrs); | 25 | struct dma_attrs *attrs); |
26 | /* | ||
27 | extern int | ||
28 | xen_swiotlb_map_sg(struct device *hwdev, struct scatterlist *sg, int nents, | ||
29 | enum dma_data_direction dir); | ||
30 | |||
31 | extern void | ||
32 | xen_swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sg, int nents, | ||
33 | enum dma_data_direction dir); | ||
34 | */ | ||
35 | extern int | 26 | extern int |
36 | xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, | 27 | xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, |
37 | int nelems, enum dma_data_direction dir, | 28 | int nelems, enum dma_data_direction dir, |