diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-01-30 13:24:00 +0000 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-01-30 08:39:21 -0800 |
commit | 6a13f66043cd755fc7e19f8e0fbb5bfcdf470e74 (patch) | |
tree | 301db0c7aa84e1649935fe3c842c75c9a40a67cf /include/asm-alpha | |
parent | d0a23398eeaa374eb0c0435c5a259ffde77c8af0 (diff) | |
download | kernel_goldelico_gta04-6a13f66043cd755fc7e19f8e0fbb5bfcdf470e74.zip kernel_goldelico_gta04-6a13f66043cd755fc7e19f8e0fbb5bfcdf470e74.tar.gz kernel_goldelico_gta04-6a13f66043cd755fc7e19f8e0fbb5bfcdf470e74.tar.bz2 |
[PATCH] dma-mapping.h stubs fix
do { } while(0) is not a good imitation of function returning void;
use ((void)0) instead.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-alpha')
-rw-r--r-- | include/asm-alpha/dma-mapping.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-alpha/dma-mapping.h b/include/asm-alpha/dma-mapping.h index 1919d72..75a1aff 100644 --- a/include/asm-alpha/dma-mapping.h +++ b/include/asm-alpha/dma-mapping.h @@ -41,9 +41,9 @@ int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, #define dma_map_single(dev, va, size, dir) virt_to_phys(va) #define dma_map_page(dev, page, off, size, dir) (page_to_pa(page) + off) -#define dma_unmap_single(dev, addr, size, dir) do { } while (0) -#define dma_unmap_page(dev, addr, size, dir) do { } while (0) -#define dma_unmap_sg(dev, sg, nents, dir) do { } while (0) +#define dma_unmap_single(dev, addr, size, dir) ((void)0) +#define dma_unmap_page(dev, addr, size, dir) ((void)0) +#define dma_unmap_sg(dev, sg, nents, dir) ((void)0) #define dma_mapping_error(addr) (0) |