Commit 09b2ad13 authored by Russell King's avatar Russell King

ARM: fix warning caused by wrongly typed arm_dma_limit

arch/arm/mm/init.c: In function 'arm_memblock_init':
arch/arm/mm/init.c:380: warning: comparison of distinct pointer types lacks a cast

by fixing the typecast in its definition when DMA_ZONE is disabled.
This was missed in 4986e5c7 (ARM: mm: fix type of the arm_dma_limit
global variable).
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent b89d607b
...@@ -64,7 +64,7 @@ extern void __flush_dcache_page(struct address_space *mapping, struct page *page ...@@ -64,7 +64,7 @@ extern void __flush_dcache_page(struct address_space *mapping, struct page *page
#ifdef CONFIG_ZONE_DMA #ifdef CONFIG_ZONE_DMA
extern phys_addr_t arm_dma_limit; extern phys_addr_t arm_dma_limit;
#else #else
#define arm_dma_limit ((u32)~0) #define arm_dma_limit ((phys_addr_t)~0)
#endif #endif
extern phys_addr_t arm_lowmem_limit; extern phys_addr_t arm_lowmem_limit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment