]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] dma-mapping: improve type-safeness of DMA translations
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 10 Aug 2008 11:10:49 +0000 (12:10 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 10 Aug 2008 11:10:49 +0000 (12:10 +0100)
commit3d1887cd1f8e36103566750735b4484562fd4f50
treeb9c0e29f20666f433d346c80b557ef0f055336eb
parent81ac31ecfca908e1db9e4cd9ef821de82f7c475f
[ARM] dma-mapping: improve type-safeness of DMA translations

OMAP at least gets the return type(s) for the DMA translation functions
wrong, which can lead to subtle errors.  Avoid this by moving the DMA
translation functions to asm/dma-mapping.h, and converting them to
inline functions.

Fix the OMAP DMA translation macros to use the correct argument and
result types.

Also, remove the unnecessary casts in dmabounce.c.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/dmabounce.c
arch/arm/include/asm/dma-mapping.h
arch/arm/include/asm/memory.h
arch/arm/plat-omap/include/mach/memory.h