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

From: Kukjin Kim
Date: Tue Jun 14 2011 - 01:20:33 EST


pullip.cho@xxxxxxxxxxx wrote:
>
> From: KyongHo Cho <pullip.cho@xxxxxxxxxxx>
>
> 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@xxxxxxxxxxx>
> CC: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx>
> CC: Joerg Roedel <joerg.roedel@xxxxxxx>
> CC Arnd Bergmann <arnd@xxxxxxxx>
>
> Change-Id: Ib99ee2b355dbe679263ce2e4e27d6219148c8338

Please don't use this here.

Thanks.

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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/