[PATCH] dma-mapping: Undefine dma_map_single(), etc if CONFIG_HAVE_DMA_ATTRS is defined

Kukjin Kim kgene.kim at samsung.com
Tue Jun 14 01:20:14 EDT 2011


pullip.cho at samsung.com wrote:
> 
> From: KyongHo Cho <pullip.cho at samsung.com>
> 
> If <asm/dma-mapping.h> includes <asm-generic/dma-mapping-common.h>,
> dma_map_single() become defined recursively when CONFIG_HAVE_DMA_ATTRS
> is not defined.
> Since dma_map_*_attrs() are defined in <linux/dma-mapping.h>, those
> in <asm-generic/dma-mapping-common.h> must be not defined
> if CONFIG_HAVE_DMA_ATTRS is not defined.
> 
> Signed-off-by: KyongHo Cho <pullip.cho at samsung.com>
> CC: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
> CC: Joerg Roedel <joerg.roedel at amd.com>
> CC Arnd Bergmann <arnd at arndb.de>
> 
> Change-Id: Ib99ee2b355dbe679263ce2e4e27d6219148c8338

Please don't use this here.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim at samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.




More information about the linux-arm-kernel mailing list