Skip to content

Commit ef0aaf8

Browse files
James Hogancmetcalf-tilera
authored andcommitted
tile,mn10300: add device parameter to dma_cache_sync()
Since v2.6.20 "Pass struct dev pointer to dma_cache_sync()" (d3fa72e), dma_cache_sync() takes a struct dev pointer, but these appear to be missing from the tile and mn10300 implementations, so add them. Signed-off-by: James Hogan <james.hogan@imgtec.com> [cmetcalf@tilera.com: took only the "tile" portion as I don't maintain mn10300] Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
1 parent aaeb012 commit ef0aaf8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎arch/tile/include/asm/dma-mapping.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ extern void dma_sync_single_range_for_cpu(struct device *, dma_addr_t,
6565
extern void dma_sync_single_range_for_device(struct device *, dma_addr_t,
6666
unsigned long offset, size_t,
6767
enum dma_data_direction);
68-
extern void dma_cache_sync(void *vaddr, size_t, enum dma_data_direction);
68+
extern void dma_cache_sync(struct device *dev, void *vaddr, size_t,
69+
enum dma_data_direction);
6970

7071
static inline int
7172
dma_mapping_error(struct device *dev, dma_addr_t dma_addr)

‎arch/tile/kernel/pci-dma.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ EXPORT_SYMBOL(dma_sync_single_range_for_device);
244244
* dma_alloc_noncoherent() returns non-cacheable memory, so there's no
245245
* need to do any flushing here.
246246
*/
247-
void dma_cache_sync(void *vaddr, size_t size,
247+
void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
248248
enum dma_data_direction direction)
249249
{
250250
}

0 commit comments

Comments
 (0)