Skip to content

Commit 4986e5c

Browse files
committed
ARM: mm: fix type of the arm_dma_limit global variable
arm_dma_limit stores physical address of maximal address accessible by DMA, so the phys_addr_t type makes much more sense 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 Reported-by: Russell King <[email protected]> Signed-off-by: Marek Szyprowski <[email protected]>
1 parent e53f517 commit 4986e5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/arm/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ EXPORT_SYMBOL(arm_dma_zone_size);
212212
* allocations. This must be the smallest DMA mask in the system,
213213
* so a successful GFP_DMA allocation will always satisfy this.
214214
*/
215-
u32 arm_dma_limit;
215+
phys_addr_t arm_dma_limit;
216216

217217
static void __init arm_adjust_dma_zone(unsigned long *size, unsigned long *hole,
218218
unsigned long dma_size)

arch/arm/mm/mm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ extern void __flush_dcache_page(struct address_space *mapping, struct page *page
6262
#endif
6363

6464
#ifdef CONFIG_ZONE_DMA
65-
extern u32 arm_dma_limit;
65+
extern phys_addr_t arm_dma_limit;
6666
#else
6767
#define arm_dma_limit ((u32)~0)
6868
#endif

0 commit comments

Comments
 (0)