Skip to content

Commit 09b2ad1

Browse files
author
Russell King
committed
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 4986e5c (ARM: mm: fix type of the arm_dma_limit global variable). Signed-off-by: Russell King <[email protected]>
1 parent b89d607 commit 09b2ad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mm/mm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ extern void __flush_dcache_page(struct address_space *mapping, struct page *page
6464
#ifdef CONFIG_ZONE_DMA
6565
extern phys_addr_t arm_dma_limit;
6666
#else
67-
#define arm_dma_limit ((u32)~0)
67+
#define arm_dma_limit ((phys_addr_t)~0)
6868
#endif
6969

7070
extern phys_addr_t arm_lowmem_limit;

0 commit comments

Comments
 (0)