[PATCH] ARM: mm: fix type of the arm_dma_limit global variable

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Jun 6 05:29:46 EDT 2012


On Wed, Jun 06, 2012 at 11:27:23AM +0200, Marek Szyprowski wrote:
> arm_dma_limit stores physical address of maximal address accessible by DMA,
> so the phys_addr_t type makes much more sence for it instead of u32. This
> patch fixes the following build warning:
> 
> arch/arm/mm/init.c:380: warning: comparison of distinct pointer types lacks a cast

I assume this is not compile tested with CONFIG_ZONE_DMA=y, because:

arch/arm/mm/mm.h:extern u32 arm_dma_limit;

would also need to be fixed.



More information about the linux-arm-kernel mailing list