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-09-17 13:00:43 -0400 |
commit | e815f45e6e5fe40ca3049987eab80d89d5781f03 (patch) | |
tree | 6f0a9549d0d93acc412146dfff9ff415c509c169 | |
parent | 3d925320e9e2de162bd138bf97816bda8c3f71be (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.
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
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 b70f2d19ab99..ab4c66c19c1a 100644 --- a/drivers/xen/swiotlb-xen.c +++ b/drivers/xen/swiotlb-xen.c | |||
@@ -515,14 +515,6 @@ xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, | |||
515 | } | 515 | } |
516 | EXPORT_SYMBOL_GPL(xen_swiotlb_map_sg_attrs); | 516 | EXPORT_SYMBOL_GPL(xen_swiotlb_map_sg_attrs); |
517 | 517 | ||
518 | int | ||
519 | xen_swiotlb_map_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, | ||
520 | enum dma_data_direction dir) | ||
521 | { | ||
522 | return xen_swiotlb_map_sg_attrs(hwdev, sgl, nelems, dir, NULL); | ||
523 | } | ||
524 | EXPORT_SYMBOL_GPL(xen_swiotlb_map_sg); | ||
525 | |||
526 | /* | 518 | /* |
527 | * Unmap a set of streaming mode DMA translations. Again, cpu read rules | 519 | * Unmap a set of streaming mode DMA translations. Again, cpu read rules |
528 | * concerning calls here are the same as for swiotlb_unmap_page() above. | 520 | * concerning calls here are the same as for swiotlb_unmap_page() above. |
@@ -543,14 +535,6 @@ xen_swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl, | |||
543 | } | 535 | } |
544 | EXPORT_SYMBOL_GPL(xen_swiotlb_unmap_sg_attrs); | 536 | EXPORT_SYMBOL_GPL(xen_swiotlb_unmap_sg_attrs); |
545 | 537 | ||
546 | void | ||
547 | xen_swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, | ||
548 | enum dma_data_direction dir) | ||
549 | { | ||
550 | return xen_swiotlb_unmap_sg_attrs(hwdev, sgl, nelems, dir, NULL); | ||
551 | } | ||
552 | EXPORT_SYMBOL_GPL(xen_swiotlb_unmap_sg); | ||
553 | |||
554 | /* | 538 | /* |
555 | * Make physical memory consistent for a set of streaming mode DMA translations | 539 | * Make physical memory consistent for a set of streaming mode DMA translations |
556 | * after a transfer. | 540 | * after a transfer. |
diff --git a/include/xen/swiotlb-xen.h b/include/xen/swiotlb-xen.h index 289ee509bda9..de8bcc641c49 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, |