diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-01-06 20:38:18 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@kernel.org> | 2008-01-06 20:38:18 +0200 |
commit | 16770f51251ce5bc5593abdc5f6c5e4b240205fd (patch) | |
tree | 667f193e0b6b96ee4c0556238c56f184cfdb7f92 | |
parent | f150bd4a52f5793813c92e9364195ccb8670d926 (diff) |
missing dma_sync_single_range_for_{cpu,device} on alpha
no-op as all dma_sync_... there.
Adrian Bunk:
Backported to 2.6.16.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
-rw-r--r-- | include/asm-alpha/dma-mapping.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/asm-alpha/dma-mapping.h b/include/asm-alpha/dma-mapping.h index 62d0d6681aa..6d5c465ecc1 100644 --- a/include/asm-alpha/dma-mapping.h +++ b/include/asm-alpha/dma-mapping.h @@ -56,12 +56,14 @@ int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, int dma_set_mask(struct device *dev, u64 mask); -#define dma_sync_single_for_cpu(dev, addr, size, dir) do { } while (0) -#define dma_sync_single_for_device(dev, addr, size, dir) do { } while (0) -#define dma_sync_single_range(dev, addr, off, size, dir) do { } while (0) -#define dma_sync_sg_for_cpu(dev, sg, nents, dir) do { } while (0) -#define dma_sync_sg_for_device(dev, sg, nents, dir) do { } while (0) -#define dma_cache_sync(va, size, dir) do { } while (0) +#define dma_sync_single_for_cpu(dev, addr, size, dir) ((void)0) +#define dma_sync_single_for_device(dev, addr, size, dir) ((void)0) +#define dma_sync_single_range(dev, addr, off, size, dir) ((void)0) +#define dma_sync_sg_for_cpu(dev, sg, nents, dir) ((void)0) +#define dma_sync_sg_for_device(dev, sg, nents, dir) ((void)0) +#define dma_cache_sync(va, size, dir) ((void)0) +#define dma_sync_single_range_for_cpu(dev, addr, offset, size, dir) ((void)0) +#define dma_sync_single_range_for_device(dev, addr, offset, size, dir) ((void)0) #define dma_get_cache_alignment() L1_CACHE_BYTES |