diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-01-20 16:04:08 -0500 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 12:23:35 -0500 |
commit | 6532c380bf4099e81e55e0c8c14a13232ead08c0 (patch) | |
tree | 0ed96e125f96d64a6cab1e3a9d09cd47205675f9 | |
parent | 551199aca1c3102ebed390566d681cc1290284ca (diff) |
IB/core: Remove ib_dma_*map_single_attrs()
Remove these functions because these are not used. Additionally, the
implementation of these functions is not correct for the hfi1, qib and
rxe drivers because dma_device is used instead of dma_ops.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | include/rdma/ib_verbs.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index fafa988e0e9a..c2f2f54dbd49 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
@@ -3005,24 +3005,6 @@ static inline void ib_dma_unmap_single(struct ib_device *dev, | |||
3005 | dma_unmap_single(dev->dma_device, addr, size, direction); | 3005 | dma_unmap_single(dev->dma_device, addr, size, direction); |
3006 | } | 3006 | } |
3007 | 3007 | ||
3008 | static inline u64 ib_dma_map_single_attrs(struct ib_device *dev, | ||
3009 | void *cpu_addr, size_t size, | ||
3010 | enum dma_data_direction direction, | ||
3011 | unsigned long dma_attrs) | ||
3012 | { | ||
3013 | return dma_map_single_attrs(dev->dma_device, cpu_addr, size, | ||
3014 | direction, dma_attrs); | ||
3015 | } | ||
3016 | |||
3017 | static inline void ib_dma_unmap_single_attrs(struct ib_device *dev, | ||
3018 | u64 addr, size_t size, | ||
3019 | enum dma_data_direction direction, | ||
3020 | unsigned long dma_attrs) | ||
3021 | { | ||
3022 | return dma_unmap_single_attrs(dev->dma_device, addr, size, | ||
3023 | direction, dma_attrs); | ||
3024 | } | ||
3025 | |||
3026 | /** | 3008 | /** |
3027 | * ib_dma_map_page - Map a physical page to DMA address | 3009 | * ib_dma_map_page - Map a physical page to DMA address |
3028 | * @dev: The device for which the dma_addr is to be created | 3010 | * @dev: The device for which the dma_addr is to be created |